OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
DropDBStmt (const rapidjson::Value &payload) | |
DropDBStmt (std::string *n, bool i) | |
auto const & | getDatabaseName () |
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_ |
bool | if_exists_ |
Definition at line 1940 of file ParserNode.h.
Parser::DropDBStmt::DropDBStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 6908 of file ParserNode.cpp.
References CHECK, db_name_, if_exists_, json_bool(), and json_str().
|
inlineexplicit |
Definition at line 1944 of file ParserNode.h.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 6918 of file ParserNode.cpp.
References db_name_, Catalog_Namespace::DBMetadata::dbOwner, Catalog_Namespace::SessionInfo::get_currentUser(), legacylockmgr::getExecuteWriteLock(), if_exists_, lockmgr::instance(), Catalog_Namespace::UserMetadata::isSuper, and Catalog_Namespace::UserMetadata::userId.
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
|
private |
Definition at line 1950 of file ParserNode.h.
Referenced by DropDBStmt(), execute(), and getDatabaseName().
|
private |
Definition at line 1951 of file ParserNode.h.
Referenced by DropDBStmt(), and execute().