dcsv
Dynamic csv reader, editor, and writer library.
If you use structured csv data, use csv crate
Feature
- Read csv which has undecided format
- Optionally validate csv values
- Edit csv values
- Write to file
Usage
[]
= "*"
use ;
use File;
let data: VirtualData = new
.use_separtor // Default is comma
.use_line_separtor // Default is semi colon
.read_from
.expect;
// Refer docs.rs for various VirtualData methods
let value : = data.get_cell.expect;
Why?
Most of the times, well known csv crate is much more performant and eaiser to use because csv format doesn't change a lot. However there are cases where program expects undecided csv formats and contents, which means program has to ensure every value is compatible with expected standard. In such case, csv crate's type guarantee is painful to handle with.
See the examples for usages.
Not yet
- Fully comptaible with csv spec