Skip to main content

rust_store_core/schema/
mod.rs

1//! Schema 管理(对应 JS `src/schema.js`)
2//!
3//! 与 JS 版的差异:注册表由模块级全局 `_schemas` 改为显式 `Registry` 实例。
4//!
5//! 文件组织:数据结构与字段规范化在 [`definition`],注册/定位/配置在 [`registry`]。
6//! 对外 API(`Registry` / `Schema` / `FieldDef` / `RelationDef` / `ComputeDef` / `map_of`)
7//! 由本模块统一再导出,拆分不改语义。
8
9mod access_keys;
10mod definition;
11mod load;
12mod registry;
13mod triggers;
14
15pub use access_keys::{parse_access_keys, AccessKeyDef};
16pub use definition::{
17    map_of, ComputeDef, FieldDef, Location, RelationDef, Role, Schema, MAX_VECTOR_DIM,
18};
19pub use load::{depth_layered, locate, plan_load, LinkDecl, LoadConfig, SourceDecl};
20pub use registry::{PolicyOverrides, Profile, ReadLinks, Registry};
21pub use triggers::{parse_triggers, validate_cron, TriggerBody, TriggerDef, Triggers, EVENTS, OPS};