English | 简体中文

api-docs / org.ktorm.global / any

any

fun <E : Any, T : BaseTable<E>> T.any(): Boolean (source code)

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

Check if there is any record in the table.

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

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

Check if there is any record in the table matches the given predicate.