Started adding a record to the database.
This commit is contained in:
		@@ -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)]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user