Added a column definition.
This commit is contained in:
parent
07baa7bbec
commit
c7d9cf0a69
@ -48,6 +48,9 @@ impl Table {
|
|||||||
pub async fn new() -> Self {
|
pub async fn new() -> Self {
|
||||||
Self {}
|
Self {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async fn new_column(&self, _name: &str, _type: &str) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
@ -110,7 +113,8 @@ mod table {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[async_std::test]
|
#[async_std::test]
|
||||||
async fn create() {
|
async fn add_column() {
|
||||||
Table::new().await;
|
let tbl = Table::new().await;
|
||||||
|
tbl.new_column("fred", "StaticString").await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user