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