LocalModelDao

Defines the LocalModelDao 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 insert(item: LocalModelEntity)

Performs the SDAI side effect handled by insert.

Link copied to clipboard
abstract suspend fun insertList(items: List<LocalModelEntity>)

Performs the SDAI side effect handled by insertList.

Link copied to clipboard
abstract fun observe(): Flow<List<LocalModelEntity>>

Loads SDAI data through observe.

Link copied to clipboard
abstract fun observeByType(type: String): Flow<List<LocalModelEntity>>

Loads SDAI data through observeByType.

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

Executes the query step in the SDAI storage layer.

Link copied to clipboard
abstract suspend fun queryById(id: String): LocalModelEntity

Executes the queryById step in the SDAI storage layer.

Link copied to clipboard
abstract suspend fun queryByType(type: String): List<LocalModelEntity>

Executes the queryByType step in the SDAI storage layer.