OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
ExportQueryStmt (std::string *q, std::string *p, std::list< NameValueAssign * > *o) | |
ExportQueryStmt (const rapidjson::Value &payload) | |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
const std::string | get_select_stmt () const |
Public Member Functions inherited from Parser::DDLStmt | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Public Attributes | |
std::unique_ptr< QueryConnector > | leafs_connector_ |
Private Member Functions | |
void | parseOptions (import_export::CopyParams ©_params, import_export::QueryExporter::FileType &file_type, std::string &layer_name, import_export::QueryExporter::FileCompression &file_compression, import_export::QueryExporter::ArrayNullHandling &array_null_handling) |
Private Attributes | |
std::unique_ptr< std::string > | select_stmt_ |
std::unique_ptr< std::string > | file_path_ |
std::list< std::unique_ptr < NameValueAssign > > | options_ |
Definition at line 1835 of file ParserNode.h.
|
inline |
Definition at line 1837 of file ParserNode.h.
References options_.
Parser::ExportQueryStmt::ExportQueryStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 6461 of file ParserNode.cpp.
References CHECK, file_path_, json_str(), options_, Parser::anonymous_namespace{ParserNode.cpp}::parse_options(), and select_stmt_.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 6477 of file ParserNode.cpp.
References Parser::anonymous_namespace{ParserNode.cpp}::acquire_query_table_locks(), import_export::QueryExporter::create(), query_state::QueryState::create(), query_state::QueryState::createQueryStateProxy(), ddl_utils::EXPORT, file_path_, g_base_path, Catalog_Namespace::SessionInfo::get_session_id(), legacylockmgr::getExecuteReadLock(), import_export::QueryExporter::kAbortWithWarning, import_export::QueryExporter::kCSV, shared::kDefaultExportDirName, import_export::QueryExporter::kNone, leafs_connector_, parseOptions(), Parser::LocalQueryConnector::query(), select_stmt_, STDLOG, and ddl_utils::validate_allowed_file_path().
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
Definition at line 1849 of file ParserNode.h.
References select_stmt_.
|
private |
Definition at line 6572 of file ParserNode.cpp.
References Parser::anonymous_namespace{ParserNode.cpp}::bool_from_string_literal(), import_export::CopyParams::delimiter, import_export::CopyParams::escape, Parser::StringLiteral::get_stringval(), import_export::CopyParams::has_header, import_export::QueryExporter::kAbortWithWarning, import_export::QueryExporter::kCSV, import_export::QueryExporter::kExportSentinels, import_export::QueryExporter::kExportZeros, import_export::QueryExporter::kFlatGeobuf, import_export::QueryExporter::kGeoJSON, import_export::QueryExporter::kGeoJSONL, import_export::QueryExporter::kGZip, import_export::kHasHeader, import_export::kNoHeader, import_export::QueryExporter::kNone, import_export::QueryExporter::kNullEntireField, import_export::QueryExporter::kShapefile, import_export::QueryExporter::kZip, import_export::CopyParams::line_delim, import_export::CopyParams::null_str, options_, import_export::CopyParams::quote, and import_export::CopyParams::quoted.
Referenced by execute().
|
private |
Definition at line 1855 of file ParserNode.h.
Referenced by execute(), and ExportQueryStmt().
std::unique_ptr<QueryConnector> Parser::ExportQueryStmt::leafs_connector_ |
Definition at line 1851 of file ParserNode.h.
Referenced by execute().
|
private |
Definition at line 1856 of file ParserNode.h.
Referenced by ExportQueryStmt(), and parseOptions().
|
private |
Definition at line 1854 of file ParserNode.h.
Referenced by execute(), ExportQueryStmt(), and get_select_stmt().