pub(crate) mod column {
use once_cell::sync::Lazy;
use reifydb_core::encoded::shape::{RowShape, RowShapeField};
use reifydb_type::value::r#type::Type;
pub(crate) const ID: usize = 0;
pub(crate) const PRIMITIVE: usize = 1;
pub(crate) const NAME: usize = 2;
pub(crate) const VALUE: usize = 3;
pub(crate) const INDEX: usize = 4;
pub(crate) const AUTO_INCREMENT: usize = 5;
pub(crate) const CONSTRAINT: usize = 6;
pub(crate) const DICTIONARY_ID: usize = 7;
pub(crate) static SHAPE: Lazy<RowShape> = Lazy::new(|| {
RowShape::new(vec![
RowShapeField::unconstrained("id", Type::Uint8),
RowShapeField::unconstrained("primitive", Type::Uint8),
RowShapeField::unconstrained("name", Type::Utf8),
RowShapeField::unconstrained("value", Type::Uint1),
RowShapeField::unconstrained("index", Type::Uint1),
RowShapeField::unconstrained("auto_increment", Type::Boolean),
RowShapeField::unconstrained("constraint", Type::Blob),
RowShapeField::unconstrained("dictionary_id", Type::Uint8),
])
});
}
pub(crate) mod primitive_column {
use once_cell::sync::Lazy;
use reifydb_core::encoded::shape::{RowShape, RowShapeField};
use reifydb_type::value::r#type::Type;
pub(crate) const ID: usize = 0;
pub(crate) const NAME: usize = 1;
pub(crate) const INDEX: usize = 2;
pub(crate) static SHAPE: Lazy<RowShape> = Lazy::new(|| {
RowShape::new(vec![
RowShapeField::unconstrained("id", Type::Uint8),
RowShapeField::unconstrained("name", Type::Utf8),
RowShapeField::unconstrained("index", Type::Uint1),
])
});
}