OmniSciDB
a5dc49c757
|
#include <DdlCommandExecutor.h>
Public Member Functions | |
AlterDatabaseCommand (const DdlCommandData &ddl_data, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr) | |
ExecutionResult | execute (bool read_only_mode) override |
Public Member Functions inherited from DdlCommand | |
DdlCommand (const DdlCommandData &ddl_data, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr) | |
Private Member Functions | |
void | changeOwner () |
void | rename () |
Additional Inherited Members | |
Protected Attributes inherited from DdlCommand | |
const DdlCommandData & | ddl_data_ |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | session_ptr_ |
Definition at line 387 of file DdlCommandExecutor.h.
AlterDatabaseCommand::AlterDatabaseCommand | ( | const DdlCommandData & | ddl_data, |
std::shared_ptr< Catalog_Namespace::SessionInfo const > | session_ptr | ||
) |
Definition at line 937 of file DdlCommandExecutor.cpp.
References CHECK, DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), and UNREACHABLE.
|
private |
Definition at line 999 of file DdlCommandExecutor.cpp.
References DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), Catalog_Namespace::SysCatalog::instance(), and DdlCommand::session_ptr_.
Referenced by execute().
|
overridevirtual |
Executes the DDL command corresponding to provided JSON payload.
_return | result of DDL command execution (if applicable) |
Implements DdlCommand.
Definition at line 957 of file DdlCommandExecutor.cpp.
References changeOwner(), DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), legacylockmgr::getExecuteWriteLock(), Catalog_Namespace::SysCatalog::instance(), and rename().
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 982 of file DdlCommandExecutor.cpp.
References CHECK, Catalog_Namespace::DBMetadata::dbOwner, DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), Catalog_Namespace::SysCatalog::instance(), Catalog_Namespace::SysCatalog::renameDatabase(), and DdlCommand::session_ptr_.
Referenced by execute().