Cindex, a csv indexer
Cindex is a easy to use csv indexer with SQL-like simple query support.
Cindex is not intended for heavy database indexing but for simple in-memory querying. Use other databases interaction layer if you're using big chunks of csv files.
Usage
[]
= "*" # Use the latest version if possible
# Use "default-features = false" if you don't need rayon iteration enhancement.
use File;
use ;
let mut indexer = new;
// Add table without types
// Default types for every columns are "Text"
indexer.add_table_fast.expect;
// Add table with column types
indexer.add_table.expect;
// Add table from stdin
let stdin = stdin;
indexer.add_table_fast.expect;
// Indexing
// Create query object and print output to terminal
let query = from_str;
indexer.index.expect;
// Use raw query and yield output to a file
indexer.index_raw.expect;
// Use builder pattern to construct query and index a table
let query = empty
.columns
.predicate
.predicate;
let mut acc = Stringnew;
indexer.index.expect;
TODO
- DateTime csv type
- Multi where caluse support
- Join table