add files
This commit is contained in:
commit
206ccb66ad
140 changed files with 367 additions and 0 deletions
12
squirrel-server/src/table/table.rs
Normal file
12
squirrel-server/src/table/table.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
use crate::Datatype;
|
||||
|
||||
pub struct Column {
|
||||
pub name: String,
|
||||
pub data_type: Datatype,
|
||||
pub length: u16 // used for char(n), varchar(n)
|
||||
}
|
||||
|
||||
pub struct TableDefinition {
|
||||
pub name: String,
|
||||
pub column_defs: Vec<Column>,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue