schema library

Lightweight schema declarations and immutable schema descriptions.

Classes

Column
Overrides a field's SQL name and optional literal database default.
ColumnDefinition
Column identity, storage constraints and literal default.
ForeignKey
A frozen foreign-key target, independent of application classes.
PrimaryKey
Declares a primary key. Identity keys must be non-nullable integers.
References
Declares a foreign key by physical table/column identity.
SchemaSnapshot
Engine-specific schema description. Generated snapshots use const data; migration definitions copy and freeze caller-provided collections.
SelectFrom
Registers a named-record selection against a declared row type. Generated code rejects unknown selections before SQL execution.
Table
Declares a database table independently from its Dart row type.
TableDefinition
Physical table identity is never inferred from a Dart record type.
Unique
Declares a unique column constraint.

Enums

ScalarType
Portable scalar types. Driver mappings preserve their documented semantics.