Skip to main content

Module controller

Module controller 

Source
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§

SchemaDelta
What a write implies for the schema.

Functions§

apply
Apply a delta. Separate from validate_write so 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?