GenerationResultDao

Defines the GenerationResultDao contract for the SDAI storage layer.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
abstract suspend fun deleteAll()

Performs the SDAI side effect handled by deleteAll.

Link copied to clipboard
abstract suspend fun deleteById(id: Long)

Performs the SDAI side effect handled by deleteById.

Link copied to clipboard
abstract suspend fun deleteByIdList(idList: List<Long>)

Performs the SDAI side effect handled by deleteByIdList.

Link copied to clipboard
abstract suspend fun insert(item: GenerationResultEntity): Long

Performs the SDAI side effect handled by insert.

Link copied to clipboard
abstract fun observeCount(): Flow<Int>

Loads SDAI data through observeCount.

Link copied to clipboard
abstract fun observePage(limit: Int, offset: Int): Flow<List<GenerationResultEntity>>

Loads SDAI data through observePage.

Link copied to clipboard
abstract suspend fun query(): List<GenerationResultEntity>

Executes the query step in the SDAI storage layer.

Link copied to clipboard
abstract suspend fun queryById(id: Long): GenerationResultEntity

Executes the queryById step in the SDAI storage layer.

Link copied to clipboard
abstract suspend fun queryByIdList(idList: List<Long>): List<GenerationResultEntity>

Executes the queryByIdList step in the SDAI storage layer.

Link copied to clipboard
abstract suspend fun queryPage(limit: Int, offset: Int): List<GenerationResultEntity>

Executes the queryPage step in the SDAI storage layer.