Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::CSVWriterOptions Struct Reference
Collaboration diagram for duckdb::CSVWriterOptions:

Public Member Functions

 CSVWriterOptions (const string &delim, const char &quote, const string &write_newline)
 
 CSVWriterOptions (CSVReaderOptions &options)
 

Public Attributes

string newline = "\n"
 The newline string to write.
 
idx_t flush_size = 4096ULL * 8ULL
 The size of the CSV file (in bytes) that we buffer before we flush it to disk.
 
vector< bool > requires_quotes
 For each byte whether the CSV file requires quotes when containing the byte.
 
CSVNewLineMode newline_writing_mode = CSVNewLineMode::WRITE_BEFORE
 How to write newlines.
 

Constructor & Destructor Documentation

◆ CSVWriterOptions() [1/2]

duckdb::CSVWriterOptions::CSVWriterOptions ( const string &  delim,
const char quote,
const string &  write_newline 
)
50991 {
50992 requires_quotes = vector<bool>(256, false);
50993 requires_quotes['\n'] = true;
50994 requires_quotes['\r'] = true;
50995 requires_quotes['#'] = true;
50996 requires_quotes[NumericCast<idx_t>(delim[0])] = true;
50997 requires_quotes[NumericCast<idx_t>(quote)] = true;
50998
50999 if (!write_newline.empty()) {
51000 newline = TransformNewLine(write_newline);
51001 }
51002}
string newline
The newline string to write.
Definition duckdb.cpp:50840
vector< bool > requires_quotes
For each byte whether the CSV file requires quotes when containing the byte.
Definition duckdb.cpp:50844

◆ CSVWriterOptions() [2/2]

duckdb::CSVWriterOptions::CSVWriterOptions ( CSVReaderOptions options)
explicit
51005 : CSVWriterOptions(options.dialect_options.state_machine_options.delimiter.GetValue(),
51006 options.dialect_options.state_machine_options.quote.GetValue(), options.write_newline) {
51007}

The documentation for this struct was generated from the following file: