llkv_table/types.rs
1//! Common types for the table core.
2
3#![forbid(unsafe_code)]
4
5use arrow::datatypes::DataType;
6
7pub use llkv_column_map::types::{FieldId, ROW_ID_FIELD_ID, RowId, TableId};
8
9/// Column definition with assigned field id used when registering table metadata.
10#[derive(Clone, Debug)]
11pub struct TableColumn {
12 pub field_id: FieldId,
13 pub name: String,
14 pub data_type: DataType,
15 pub nullable: bool,
16 pub primary_key: bool,
17 pub unique: bool,
18 pub check_expr: Option<String>,
19}