OmniSciDB
c1a53651b2
|
#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 |
![]() | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
![]() | |
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 1848 of file ParserNode.h.
|
inline |
Definition at line 1850 of file ParserNode.h.
References options_.
Parser::ExportQueryStmt::ExportQueryStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 6138 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 6154 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(), legacylockmgr::ExecutorOuterLock, ddl_utils::EXPORT, file_path_, g_base_path, Catalog_Namespace::SessionInfo::get_session_id(), legacylockmgr::LockMgr< MutexType, KeyType >::getMutex(), 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 1862 of file ParserNode.h.
References select_stmt_.
|
private |
Definition at line 6252 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 1868 of file ParserNode.h.
Referenced by execute(), and ExportQueryStmt().
std::unique_ptr<QueryConnector> Parser::ExportQueryStmt::leafs_connector_ |
Definition at line 1864 of file ParserNode.h.
Referenced by execute().
|
private |
Definition at line 1869 of file ParserNode.h.
Referenced by ExportQueryStmt(), and parseOptions().
|
private |
Definition at line 1867 of file ParserNode.h.
Referenced by execute(), ExportQueryStmt(), and get_select_stmt().