ModelDao

interface ModelDao

A Data Access Object (DAO) interface for the Model class.

Functions

Link copied to clipboard
abstract suspend fun delete(model: Model)

Delete the given Model from the models table.

Link copied to clipboard
abstract fun getAllModels(): Flow<List<Model>>

Retrieve all Models from the models table.

Link copied to clipboard
abstract fun getModel(uid: Int): Flow<Model>

Retrieve a Model by uid from the models table.

Link copied to clipboard
abstract suspend fun insert(model: Model)

Insert a Model into the models table. If the model already exists, replace it.

Link copied to clipboard
abstract suspend fun update(model: Model)

Update the given Model.