Schema

@Serializable
data class Schema(source)

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(tables: List<BaseTable>)
constructor(vararg tables: BaseTable)

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

Properties

Link copied to clipboard
@SerialName(value = "raw_tables")
val rawTables: List<RawTable>
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.