api-docs / org.ktorm.global / sumBy
sumBy
inline fun <E : Any, T : BaseTable<E>, C : Number> T.sumBy(
selector: (T) -> ColumnDeclaring<C>
): C?
(source code)Deprecated: ktorm-global will be removed in the future, please migrate to the standard API.
Return the sum of the given column or expression of all the records, null if there are no records in the table.