Skip to main content

hayson_engine/catalog/
mod.rs

1pub(crate) mod build;
2pub(crate) mod declare_index;
3pub(crate) mod indexes;
4pub(crate) mod integrity;
5pub(crate) mod migrate;
6pub(crate) mod parse;
7pub(crate) mod serialize;
8pub(crate) mod types;
9pub(crate) mod write;
10
11pub use build::{create_table, declare_trigger, drop_field, empty_catalog};
12pub use declare_index::declare_index;
13pub use indexes::{expand_indexes, sugar_index_name, ExpandedIndex};
14pub use integrity::{check_integrity, IntegrityReport, OrphanRecord};
15pub use migrate::{
16    migrate_format1, migrate_format_1_to_2, schema_files_of as format_1_schema_files, MigrateFormat1Error,
17    MigrateOutcome,
18};
19pub use parse::parse_catalog;
20pub use serialize::catalog_document;
21pub use types::{
22    Catalog, CatalogCompaction, CatalogFieldSpec, CatalogIndexKind, CatalogLayout, CatalogPredicate, CatalogSyncMode,
23    CatalogValidation, CheckEntry, HistoryEntry, IndexEntry, LinkParsing, Relation, RelationAction,
24    RelationCardinality, RelationEnd, TableEntry, TableOptions, TriggerEffect, TriggerEntry, TriggerEvent,
25    TriggerFieldMapping, TriggerValueSource, ViewEntry,
26};
27pub use write::{assert_catalog_readable, write_catalog};
28
29pub(crate) use indexes::index_identity;
30pub(crate) use integrity::relations_touching;