From c7d9cf0a69d8d33d7dbb719951df61baa1235fca Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Mon, 8 Aug 2022 07:53:35 -0400 Subject: [PATCH] Added a column definition. --- src/morethantext/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index cb335a4..33d6dfd 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -48,6 +48,9 @@ impl Table { pub async fn new() -> Self { Self {} } + + async fn new_column(&self, _name: &str, _type: &str) { + } } #[cfg(test)] @@ -110,7 +113,8 @@ mod table { use super::*; #[async_std::test] - async fn create() { - Table::new().await; + async fn add_column() { + let tbl = Table::new().await; + tbl.new_column("fred", "StaticString").await; } }