use lazy_static::lazy_static;
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;
lazy_static! {
pub static ref SYSTEM_SCHEMAS: Vec<&'static Schema> = 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);
}
}