ic_dbms_api/dbms/table.rs
1//! This module contains types related to database tables.
2
3mod column_def;
4mod record;
5mod schema;
6
7use thiserror::Error;
8
9pub use self::column_def::{ColumnDef, ForeignKeyDef};
10pub use self::record::{
11 InsertRecord, TableColumns, TableName, TableRecord, UpdateRecord, ValuesSource,
12};
13pub use self::schema::{TableFingerprint, TableSchema};
14
15/// Table related errors
16#[derive(Debug, Error)]
17pub enum TableError {
18 #[error("Table not found")]
19 TableNotFound,
20 #[error("Schema mismatch")]
21 SchemaMismatch,
22}