OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
CreateDBStmt (const rapidjson::Value &payload) | |
CreateDBStmt (std::string *n, std::list< NameValueAssign * > *l, const bool if_not_exists) | |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
Public Member Functions inherited from Parser::DDLStmt | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Private Attributes | |
std::unique_ptr< std::string > | db_name_ |
std::list< std::unique_ptr < NameValueAssign > > | options_ |
bool | if_not_exists_ |
Definition at line 1914 of file ParserNode.h.
Parser::CreateDBStmt::CreateDBStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 6859 of file ParserNode.cpp.
References CHECK, db_name_, if_not_exists_, json_bool(), json_str(), options_, and Parser::anonymous_namespace{ParserNode.cpp}::parse_options().
|
inline |
Definition at line 1918 of file ParserNode.h.
References options_.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 6871 of file ParserNode.cpp.
References Parser::checkStringLiteral(), db_name_, Catalog_Namespace::SessionInfo::get_currentUser(), legacylockmgr::getExecuteWriteLock(), if_not_exists_, lockmgr::instance(), Catalog_Namespace::UserMetadata::isSuper, options_, and Catalog_Namespace::UserMetadata::userId.
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 1931 of file ParserNode.h.
Referenced by CreateDBStmt(), and execute().
|
private |
Definition at line 1933 of file ParserNode.h.
Referenced by CreateDBStmt(), and execute().
|
private |
Definition at line 1932 of file ParserNode.h.
Referenced by CreateDBStmt(), and execute().