OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
RenameDBStmt (const rapidjson::Value &payload) | |
RenameDBStmt (std::string *database_name, std::string *new_database_name) | |
auto const & | getPreviousDatabaseName () |
auto const & | getNewDatabaseName () |
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 > | database_name_ |
std::unique_ptr< std::string > | new_database_name_ |
Definition at line 1292 of file ParserNode.h.
Parser::RenameDBStmt::RenameDBStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 5138 of file ParserNode.cpp.
References CHECK, database_name_, json_str(), and new_database_name_.
|
inline |
Definition at line 1296 of file ParserNode.h.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 5145 of file ParserNode.cpp.
References database_name_, Catalog_Namespace::DBMetadata::dbOwner, Catalog_Namespace::SessionInfo::get_currentUser(), legacylockmgr::getExecuteWriteLock(), lockmgr::instance(), Catalog_Namespace::UserMetadata::isSuper, new_database_name_, and Catalog_Namespace::UserMetadata::userId.
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
Definition at line 1300 of file ParserNode.h.
References new_database_name_.
|
inline |
Definition at line 1299 of file ParserNode.h.
References database_name_.
|
private |
Definition at line 1305 of file ParserNode.h.
Referenced by execute(), getPreviousDatabaseName(), and RenameDBStmt().
|
private |
Definition at line 1306 of file ParserNode.h.
Referenced by execute(), getNewDatabaseName(), and RenameDBStmt().