HBDatabase

class HBDatabase(driverProvider: SqlDriverProvider)

Constructors

Link copied to clipboard
constructor(driverProvider: SqlDriverProvider)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun fromTime(startTimeMillis: Long): Query<Log>
Link copied to clipboard
Link copied to clipboard
fun insertLog(type: LogType, node: String, count: Long? = null): QueryResult<Long>
Link copied to clipboard
fun insertLog2(msb: Long, lsb: Long, type: LogType, node: String, count: Long? = null): QueryResult<Long>
Link copied to clipboard
fun insertLogs(logs: List<JsonLog>)
Link copied to clipboard
fun jsonLogFlow(fromID: Long = 0, emptyListEmissionDuration: Duration = Duration.ZERO): Flow<List<Log>>
Link copied to clipboard
fun latestLogID(pollDuration: Duration = Duration.ZERO): Flow<Long>
Link copied to clipboard
fun logEntries(): Query<Log>
Link copied to clipboard
fun logEntriesByNode(node: String): Query<Log>
Link copied to clipboard
fun logLatest(): Log?
Link copied to clipboard
fun peerAdd(peer: Peer): QueryResult<Long>
Link copied to clipboard
fun peerDelete(name: String): QueryResult<Long>
Link copied to clipboard
fun peerGetByName(name: String): Query<Peer>
Link copied to clipboard
fun peers(): List<Peer>
Link copied to clipboard
fun peerUpdate(peer: Peer): QueryResult<Long>
Link copied to clipboard
fun runMigrations(vararg migrationArgs: Migration)
Link copied to clipboard
fun today(): Query<Log>
Link copied to clipboard
fun updateMetadataVersion(version: Int): QueryResult<Long>