BaseRepository

abstract class BaseRepository<T : Table>(database: KeelDatabase, table: T)(source)

Base repository providing common database operations. This is the foundation for all repositories in the framework.

Parameters

T

The table type this repository operates on

Constructors

Link copied to clipboard
constructor(database: KeelDatabase, table: T)

Functions

Link copied to clipboard
fun count(): Int

Count all records in the table.

Link copied to clipboard

Check if any records exist in the table.