Expand description
Enforcing a schema against a write, and growing it implicitly.
Upstream splits this across enforceFieldExists, validateObject and
validateRequiredColumns (SchemaController.js). The part that matters for 0.1.0 is the pair
of decisions made per field on every write: does this field already have a type, and does the
incoming value agree with it.
Structs§
- Schema
Delta - What a write implies for the schema.
Functions§
- apply
- Apply a delta. Separate from
validate_writeso the caller controls when it happens. - default_
schema - The schema a brand new class starts with: the four default columns and nothing else.
- validate_
write - Validate a write against a class schema and report what it would add.
- value_
matches - Does a value belong in a field of this type?