use once_cell::sync::Lazy;
use crate::schema::Schema;
mod error;
mod schema_definition;
mod schema_field_definition;
mod schema_views;
pub use error::SystemSchemaError;
pub use schema_views::{SchemaFieldView, SchemaView};
pub(super) use schema_definition::get_schema_definition;
pub(super) use schema_field_definition::get_schema_field_definition;
pub static SYSTEM_SCHEMAS: Lazy<Vec<&'static Schema>> = Lazy::new(|| {
vec![
get_schema_definition(1).unwrap(),
get_schema_field_definition(1).unwrap(),
]
});
#[cfg(test)]
mod test {
use super::SYSTEM_SCHEMAS;
#[test]
fn test_static_system_schemas() {
assert_eq!(SYSTEM_SCHEMAS.len(), 2);
}
}