feat: Introduce a basic RocksDB based version

This commit is contained in:
Clément Renault 2019-05-23 14:47:10 +02:00
parent 3a8da82792
commit 4c973238a1
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
12 changed files with 119 additions and 105 deletions

View file

@ -59,7 +59,7 @@ fn index(
let mut system = sysinfo::System::new();
let index = database.create_index("default", schema.clone())?;
let index = database.create_index("test", schema.clone())?;
let mut rdr = csv::Reader::from_path(csv_data_path)?;
let mut raw_record = csv::StringRecord::new();

View file

@ -143,7 +143,7 @@ fn main() -> Result<(), Box<Error>> {
let mut buffer = String::new();
let input = io::stdin();
let index = database.open_index("default")?.unwrap();
let index = database.open_index("test")?.unwrap();
let schema = index.schema();
println!("database prepared for you in {:.2?}", start.elapsed());