Schema

data class Schema(val tables: List<Table>)

The schema used by the database.

The implementation uses the schema as a "VIEW" on top of JSON data. No migrations are required on the client.

Constructors

Link copied to clipboard
constructor(vararg tables: Table)

Secondary constructor to create a schema with a variable number of tables.

constructor(tables: List<Table>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun validate()

Validates the schema by ensuring there are no duplicate table names and that each table is valid.