Schema

object Schema : SqlSchema<QueryResult.Value<Unit>>

The schema of a database that only holds checkpoints, in the table of the default name, for a driver that asks for a schema:

val android = AndroidSqliteDriver(SqlDelightCheckpointer.Schema, context, "runs.db")
val ios = NativeSqliteDriver(SqlDelightCheckpointer.Schema, "runs.db")

A database with tables of the app has the schema of the app instead: the checkpointer adds its table to it. The web worker driver of the browser takes no schema and needs none, and this one does not work with it: its statements only run when they are awaited.

Properties

Link copied to clipboard
open override val version: Long = 1

The version of the schema. It is 1.

Functions

Link copied to clipboard
open override fun create(driver: SqlDriver): QueryResult.Value<Unit>

Creates the table of the checkpoints.

Link copied to clipboard
open override fun migrate(driver: SqlDriver, oldVersion: Long, newVersion: Long, vararg callbacks: AfterVersion): QueryResult.Value<Unit>

Does nothing: the schema has had one version only.