Started adding a record to the database.

This commit is contained in:
Jeff Baskin 2022-07-20 23:04:17 -04:00
parent ca64717cea
commit 111635a61c

View File

@ -145,6 +145,10 @@ impl Table {
None => None, None => None,
} }
} }
async fn new_record(&self) -> Record {
Record::new()
}
} }
struct Record { struct Record {
@ -217,6 +221,12 @@ mod tables {
"Should return None if field does not exist." "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)] #[cfg(test)]