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