ic_dbms_api/dbms/
table.rs1mod column_def;
4mod record;
5mod schema;
6
7use candid::CandidType;
8use serde::{Deserialize, Serialize};
9use thiserror::Error;
10
11pub use self::column_def::{ColumnDef, ForeignKeyDef};
12pub use self::record::{InsertRecord, TableColumns, TableRecord, UpdateRecord, ValuesSource};
13pub use self::schema::{TableFingerprint, TableSchema};
14
15#[derive(Debug, Error, CandidType, Deserialize, Serialize)]
17pub enum TableError {
18 #[error("Table not found")]
19 TableNotFound,
20 #[error("Schema mismatch")]
21 SchemaMismatch,
22}