SqlDelightStore

constructor(driver: SqlDriver, table: String = DEFAULT_TABLE, clock: Clock = Clock.System)

Parameters

driver

the database. Its dialect has to be SQLite.

table

the name of the table, letters, digits and _, not starting with a digit.

clock

gives StoreItem.updatedAt, to the microsecond. Two writes of one store never get the same time, and a store starts after the last write it finds in its table, so list keeps their order also with a clock that is not precise or that went back.