Expand description
Shared foundations for the ruprizzle ORM.
This crate defines the ir::Schema type — the single contract that the
parser produces and that codegen, the dialects, and the migration engine all
consume — plus the spans and diagnostics that let any stage of the pipeline
point back at the user’s source.
It has no database dependencies and does no I/O, which keeps it cheap to depend on and trivial to test.
§Layout
ir— the intermediate representationnames— newtypes distinguishing model, field, and enum namesspan— byte-offset source locationsdiagnostic— accumulating, span-carrying schema errorssuggest— “did you mean…?” support for those errors
Re-exports§
pub use diagnostic::Diagnostics;pub use diagnostic::SchemaError;pub use diagnostic::SchemaErrors;pub use ir::Provider;pub use ir::Schema;pub use names::EnumName;pub use names::FieldName;pub use names::ModelName;pub use span::Span;
Modules§
- diagnostic
- Schema diagnostics.
- ir
- The intermediate representation: the contract every other crate speaks.
- names
- Newtype wrappers for the different kinds of name in a schema.
- span
- Source locations.
- suggest
- “Did you mean…?” suggestions.