Table module ?
This commit is contained in:
parent
1344f1580d
commit
fee17bb4ad
10
src/table.rs
10
src/table.rs
@ -20,6 +20,16 @@ impl TableRow
|
||||
self.path = format!("{}.bson",name.clone());
|
||||
let mut file = File::create(self.path.clone()).unwrap();
|
||||
entry.save(file)?;
|
||||
Table::insert(self);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
mod Table{
|
||||
use super::TableRow;
|
||||
|
||||
|
||||
pub fn insert(row :&mut TableRow){
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user