pub struct TableSchema {
pub relation: RelationIdentity,
pub object_id: [u8; 16],
pub storage_generation: [u8; 16],
pub analyzer_json: String,
pub fts_fields: Vec<String>,
pub vector_fields: Vec<VectorFieldSchema>,
pub columns_json: String,
pub constraints_json: String,
}Fields§
§relation: RelationIdentity§object_id: [u8; 16]Stable logical relation identity. CREATE TABLE allocates a new value, while renames, schema changes, TRUNCATE, and reopen preserve it. A zero value marks a legacy catalog row that the engine upgrades during open.
storage_generation: [u8; 16]Stable physical-storage identity. CREATE TABLE and TRUNCATE allocate a new value, while schema-only alterations and renames preserve it. A zero value marks a legacy catalog row that the engine upgrades during open.
analyzer_json: String§fts_fields: Vec<String>§vector_fields: Vec<VectorFieldSchema>§columns_json: StringSerialized Vec<uqa_sql::ast::ColumnDef> capturing the schema
columns (name, type, auto_increment, flags). Empty for
tables created by the legacy code path before column tracking
existed.
constraints_json: StringSerialized uqa_sql::ast::TableConstraintSet. Empty for catalogs
created before durable table constraints were introduced.
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§fn clone(&self) -> TableSchema
fn clone(&self) -> TableSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableSchema
impl Debug for TableSchema
Source§impl<'de> Deserialize<'de> for TableSchema
impl<'de> Deserialize<'de> for TableSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl UnsafeUnpin for TableSchema
impl UnwindSafe for TableSchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more