#csv #file #queries #key-value #engine

csvquery

Engine for making key-value queries in csv file

4 releases (2 breaking)

0.3.1 Mar 24, 2021
0.3.0 Mar 23, 2021
0.2.0 Mar 23, 2021
0.1.0 Feb 27, 2021

#2746 in Database interfaces

MIT license

7KB
133 lines

Engine for making key-value queries in csv file

Example

let opts = EngineOptions::default();
let mut engine: Engine<String, YourType> = Engine::from_file_with_opts("file.csv", YourType::make_key, opts).unwrap();
let value = engine.get_from_file("key");
println!("{:?}", value);

lib.rs:

Query csv rows from large file

Dependencies

~1.2–1.6MB
~19K SLoC