Struct arrow::csv::writer::WriterBuilder [−][src]
pub struct WriterBuilder { /* fields omitted */ }
Expand description
A CSV writer builder
Implementations
Create a new builder for configuring CSV writing options.
To convert a builder into a writer, call WriterBuilder::build
Example
extern crate arrow;
use arrow::csv;
use std::fs::File;
fn example() -> csv::Writer<File> {
let file = File::create("target/out.csv").unwrap();
// create a builder that doesn't write headers
let builder = csv::WriterBuilder::new().has_headers(false);
let writer = builder.build(file);
writer
}
Set whether to write headers
Set the CSV file’s column delimiter as a byte character
Set the CSV file’s date format
Set the CSV file’s time format
Set the CSV file’s timestamp format