OffloadingServiceDao

A Data Access Object (DAO) interface for interacting with the OffloadingService table.

Functions

Link copied to clipboard
abstract fun changeState(serviceId: Int, state: Pipeline.State)

Changes the state of an OffloadingService in the database based on its ID.

Link copied to clipboard
abstract suspend fun delete(serviceId: Int)

Delete an OffloadingService from the offloadingservices table based on its ID.

Link copied to clipboard

Retrieve all OffloadingServices from the offloadingservices table.

Link copied to clipboard
abstract fun getOffloadingService(serviceId: Int): Flow<OffloadingService>

Retrieve an OffloadingService by serviceId from the offloadingservices table.

Link copied to clipboard
abstract fun insert(offloadingService: OffloadingService)

Insert an OffloadingService into the offloadingservices table. If the offloadingService already exists, replace it.

Link copied to clipboard
abstract suspend fun update(offloadingService: OffloadingService)

Update the given OffloadingService.