OmniSciDB
a5dc49c757
|
#include <QueryExporterCSV.h>
Public Member Functions | |
QueryExporterCSV () | |
~QueryExporterCSV () override | |
void | beginExport (const std::string &file_path, const std::string &layer_name, const CopyParams ©_params, const std::vector< TargetMetaInfo > &column_infos, const FileCompression file_compression, const ArrayNullHandling array_null_handling) final |
void | exportResults (const std::vector< AggregatedResult > &query_results) final |
void | endExport () final |
Public Member Functions inherited from import_export::QueryExporter | |
QueryExporter (const FileType file_type) | |
QueryExporter ()=delete | |
virtual | ~QueryExporter () |
Private Attributes | |
std::ofstream | outfile_ |
CopyParams | copy_params_ |
Definition at line 25 of file QueryExporterCSV.h.
import_export::QueryExporterCSV::QueryExporterCSV | ( | ) |
Definition at line 26 of file QueryExporterCSV.cpp.
|
override |
Definition at line 28 of file QueryExporterCSV.cpp.
|
finalvirtual |
Implements import_export::QueryExporter.
Definition at line 30 of file QueryExporterCSV.cpp.
References copy_params_, import_export::CopyParams::delimiter, import_export::CopyParams::has_header, import_export::kNoHeader, import_export::QueryExporter::kNone, import_export::CopyParams::line_delim, outfile_, import_export::QueryExporter::safeColumnName(), and import_export::QueryExporter::validateFileExtensions().
|
finalvirtual |
Implements import_export::QueryExporter.
Definition at line 266 of file QueryExporterCSV.cpp.
References outfile_.
|
finalvirtual |
Implements import_export::QueryExporter.
Definition at line 142 of file QueryExporterCSV.cpp.
References CHECK, CHECK_EQ, shared::convert_temporal_to_iso_format(), copy_params_, import_export::CopyParams::delimiter, import_export::CopyParams::escape, is_null(), kBIGINT, kBOOLEAN, kDATE, kFLOAT, kINT, kNUMERIC, kSMALLINT, kTIME, kTIMESTAMP, kTINYINT, import_export::CopyParams::line_delim, NULL_BIGINT, NULL_BOOLEAN, NULL_DOUBLE, NULL_FLOAT, NULL_INT, NULL_SMALLINT, import_export::CopyParams::null_str, NULL_TINYINT, outfile_, import_export::CopyParams::quote, import_export::CopyParams::quoted, and import_export::anonymous_namespace{QueryExporterCSV.cpp}::target_value_to_string().
|
private |
Definition at line 41 of file QueryExporterCSV.h.
Referenced by beginExport(), and exportResults().
|
private |
Definition at line 40 of file QueryExporterCSV.h.
Referenced by beginExport(), endExport(), and exportResults().