@@ -4,16 +4,8 @@ use heromodels::models::{Comment, User};
|
||||
use heromodels_core::Model;
|
||||
|
||||
fn main() {
|
||||
let index_db = tst::TST::new("/tmp/ourdb/tst", true).expect("can create index DB");
|
||||
let data_db = ourdb::OurDB::new(ourdb::OurDBConfig {
|
||||
incremental_mode: false,
|
||||
path: "/tmp/ourdb/ourdb".into(),
|
||||
file_size: None,
|
||||
keysize: None,
|
||||
reset: Some(true),
|
||||
})
|
||||
.expect("can create data DB");
|
||||
let db = heromodels::db::hero::OurDB::new(index_db, data_db);
|
||||
// Create a new DB instance in /tmp/ourdb, and reset before every run
|
||||
let db = heromodels::db::hero::OurDB::new("/tmp/ourdb", true).expect("Can create DB");
|
||||
|
||||
println!("Hero Models - Basic Usage Example");
|
||||
println!("================================");
|
||||
|
Reference in New Issue
Block a user