Skip to main content

Module schema

Module schema 

Source
Expand description

A Zero schema’s tables and columns (packages/zero-types/src/schema.ts), and the names they map to on the server (packages/zero-types/src/name-mapper.ts).

Structs§

Column
A column (SchemaValue).
NameMapper
Maps table and column names between the client and the server (NameMapper).
NameMappingError
An unknown table or column met while mapping names.
RelationshipHop
One hop of a relationship: from source_field of the table to dest_field of dest_schema.
Schema
The tables of a schema and their relationships, in declaration order.
Table

Enums§

Cardinality
How many rows a relationship hop leads to.
ValueType
The type of a column value (ValueType in schema-value.ts).

Type Aliases§

Relationship
A relationship: one hop, or two through a junction table.