IBaseDao

Properties

Link copied to clipboard
abstract val classIDInstance: ID
Link copied to clipboard
abstract val columnId: String
Link copied to clipboard
abstract val sortAll: String?
Link copied to clipboard
abstract val tableName: String

Functions

Link copied to clipboard
abstract suspend fun _delete(items: List<Entity>): Int
Link copied to clipboard
abstract fun _flowInt(query: RoomRawQuery): Flow<Int>
Link copied to clipboard
abstract fun _flowItem(query: RoomRawQuery): Flow<Entity>
Link copied to clipboard
abstract fun _flowList(query: RoomRawQuery): Flow<List<Entity>>
Link copied to clipboard
abstract suspend fun _insertOrUpdate(item: Entity): Long
abstract suspend fun _insertOrUpdate(items: List<Entity>): List<Long>
Link copied to clipboard
open suspend fun _loadAllIn(ids: List<ID>): List<Entity>
Link copied to clipboard
open fun convertId(id: Long): ID
Link copied to clipboard
open suspend fun count(): Int
Link copied to clipboard
abstract suspend fun delete(item: Entity): Int
open suspend fun delete(items: List<Entity>): Int
Link copied to clipboard
open suspend fun deleteById(database: RoomDatabase, id: ID): Int
Link copied to clipboard
open suspend fun deleteByIds(database: RoomDatabase, ids: List<ID>): Int
Link copied to clipboard
open fun flow(id: ID): Flow<Entity>
Link copied to clipboard
open fun flowAll(): Flow<List<Entity>>
Link copied to clipboard
open fun flowAllIn(ids: List<ID>): Flow<List<Entity>>
Link copied to clipboard
open fun flowCount(): Flow<Int>
Link copied to clipboard
open suspend fun insertOrUpdate(item: Entity): Entity
open suspend fun insertOrUpdate(items: List<Entity>): List<Entity>
Link copied to clipboard
open suspend fun load(id: ID): Entity
Link copied to clipboard
open suspend fun loadAll(): List<Entity>
Link copied to clipboard
open suspend fun loadAllIn(ids: List<ID>): List<Entity>
Link copied to clipboard
abstract suspend fun rawInt(query: RoomRawQuery): Int
Link copied to clipboard
abstract suspend fun rawItem(query: RoomRawQuery): Entity
Link copied to clipboard
abstract suspend fun rawItemOrNull(query: RoomRawQuery): Entity?
Link copied to clipboard
abstract suspend fun rawList(query: RoomRawQuery): List<Entity>
Link copied to clipboard
open suspend fun tryLoad(id: ID): Entity?