diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/DB/QueryBuilder/IFunctionBuilder.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/DB/QueryBuilder/IFunctionBuilder.php b/lib/public/DB/QueryBuilder/IFunctionBuilder.php index 6c1f596966d..38d3a67da9b 100644 --- a/lib/public/DB/QueryBuilder/IFunctionBuilder.php +++ b/lib/public/DB/QueryBuilder/IFunctionBuilder.php @@ -59,4 +59,14 @@ interface IFunctionBuilder { * @since 12.0.0 */ public function substring($input, $start, $length = null); + + /** + * Takes the sum of all rows in a column + * + * @param mixed $field the column to sum + * + * @return IQueryFunction + * @since 12.0.0 + */ + public function sum($field); } |