English | 简体中文

api-docs / org.ktorm.global / count

count

fun <E : Any, T : BaseTable<E>> T.count(): Int (source code)

Deprecated: ktorm-global will be removed in the future, please migrate to the standard API.

Return the records count in the table.

inline fun <E : Any, T : BaseTable<E>> T.count(
    predicate: (T) -> ColumnDeclaring<Boolean>
): Int
(source code)

Deprecated: ktorm-global will be removed in the future, please migrate to the standard API.

Return the records count in the table that matches the given predicate.