Expand description
Field types, inference, validation, and the _SCHEMA storage format.
Parse’s schema is implicit: the first write that mentions a field decides its type, and every later write is checked against that decision. This crate owns that machinery. It performs no I/O; loading and persisting a schema belongs to the storage adapter.
storage_format is the highest-risk module in the crate, because _SCHEMA is shared with any
parse-server reading the same database and both of its failure modes are silent.
Re-exports§
pub use clp_validate::validate_clp;pub use clp_validate::ClpValidation;pub use clp_validate::ObjectIdForm;pub use clp_validate::Unenforceable;pub use controller::apply;pub use controller::default_schema;pub use controller::validate_required_columns;pub use controller::validate_write;pub use controller::validate_write_fields;pub use controller::SchemaDelta;pub use infer::class_name_is_valid;pub use infer::field_name_is_valid;pub use infer::infer_op_type;pub use infer::infer_type;pub use infer::SYSTEM_CLASSES;pub use infer::VOLATILE_CLASSES;pub use schema_api::check_default_value_type;pub use schema_api::plan_update;pub use schema_api::validate_new_class;pub use schema_api::FieldChange;pub use schema_api::SchemaMutation;pub use schema_api::SetField;
Modules§
- clp_
validate - Validating a class-level-permissions block, with upstream’s exact messages.
- controller
- Enforcing a schema against a write, and growing it implicitly.
- infer
- Type inference, name validation, and default columns.
- schema_
api - Validation for
POST /schemas/:classNameandPUT /schemas/:className. - storage_
format - The
_SCHEMAdocument format.
Structs§
- Class
Schema - The shape of one class: what a transform needs to lower or raise a document.
Enums§
- Field
Type - A Parse field type.