OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Types | |
using | TableNamePair = std::pair< std::unique_ptr< std::string >, std::unique_ptr< std::string >> |
Public Member Functions | |
RenameTableStmt (const rapidjson::Value &payload) | |
RenameTableStmt (std::string *tab_name, std::string *new_tab_name) | |
RenameTableStmt (std::list< std::pair< std::string, std::string >> tableNames) | |
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::list< TableNamePair > | tablesToRename_ |
Definition at line 1324 of file ParserNode.h.
using Parser::RenameTableStmt::TableNamePair = std::pair<std::unique_ptr<std::string>, std::unique_ptr<std::string>> |
Definition at line 1327 of file ParserNode.h.
Parser::RenameTableStmt::RenameTableStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 5167 of file ParserNode.cpp.
References CHECK, json_str(), and tablesToRename_.
Parser::RenameTableStmt::RenameTableStmt | ( | std::string * | tab_name, |
std::string * | new_tab_name | ||
) |
Definition at line 5179 of file ParserNode.cpp.
References tablesToRename_.
Parser::RenameTableStmt::RenameTableStmt | ( | std::list< std::pair< std::string, std::string >> | tableNames | ) |
Definition at line 5183 of file ParserNode.cpp.
References tablesToRename_.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 5257 of file ParserNode.cpp.
References Parser::check_alter_table_privilege(), Parser::anonymous_namespace{ParserNode.cpp}::checkNameSubstition(), Parser::anonymous_namespace{ParserNode.cpp}::disable_foreign_tables(), Parser::anonymous_namespace{ParserNode.cpp}::EMPTY_NAME, Parser::anonymous_namespace{ParserNode.cpp}::generateUniqueTableName(), Catalog_Namespace::SessionInfo::getCatalog(), legacylockmgr::getExecuteWriteLock(), Parser::anonymous_namespace{ParserNode.cpp}::hasData(), Parser::anonymous_namespace{ParserNode.cpp}::loadTable(), Parser::anonymous_namespace{ParserNode.cpp}::recordRename(), and tablesToRename_.
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 1342 of file ParserNode.h.
Referenced by execute(), and RenameTableStmt().