app / de.uniks.codliners.stock_simulator.database / HistoricalPriceDao

HistoricalPriceDao

interface HistoricalPriceDao

Dao that manages HistoricalPrices in the database

Author
Juri Lozowoj

Functions

deleteHistoricalPricesById

Deletes the HistoricalPrice with matching id from the database.

abstract fun deleteHistoricalPricesById(id: String): Unit

getHistoricalPricesById

Returns the HistoricalPrices with the matching id as a List, wrapped in LiveData.

abstract fun getHistoricalPricesById(id: String): LiveData<List<HistoricalPrice>>

insertAll

Inserts HistoricalPrices into the database.

abstract fun insertAll(vararg prices: HistoricalPrice): Unit