From 111635a61c3c44c16a462b7112619c56ec2ca968 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Wed, 20 Jul 2022 23:04:17 -0400 Subject: [PATCH] Started adding a record to the database. --- src/morethantext/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index aa211a3..a6879f3 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -145,6 +145,10 @@ impl Table { None => None, } } + + async fn new_record(&self) -> Record { + Record::new() + } } struct Record { @@ -217,6 +221,12 @@ mod tables { "Should return None if field does not exist." ); } + + #[async_std::test] + async fn get_empty_record() { + let tbl = Table::new(); + tbl.new_record().await; + } } #[cfg(test)]