OmniSciDB
a5dc49c757
|
#include <DdlCommandExecutor.h>
Public Member Functions | |
ReassignOwnedCommand (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 Attributes | |
std::string | new_owner_ |
std::set< std::string > | old_owners_ |
bool | all_ |
Additional Inherited Members | |
Protected Attributes inherited from DdlCommand | |
const DdlCommandData & | ddl_data_ |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | session_ptr_ |
Definition at line 399 of file DdlCommandExecutor.h.
ReassignOwnedCommand::ReassignOwnedCommand | ( | const DdlCommandData & | ddl_data, |
std::shared_ptr< Catalog_Namespace::SessionInfo const > | session_ptr | ||
) |
Definition at line 3615 of file DdlCommandExecutor.cpp.
References all_, CHECK, DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), new_owner_, and old_owners_.
|
overridevirtual |
Executes the DDL command corresponding to provided JSON payload.
_return | result of DDL command execution (if applicable) |
Implements DdlCommand.
Definition at line 3634 of file DdlCommandExecutor.cpp.
References all_, Catalog_Namespace::SysCatalog::getCatalogsForAllDbs(), legacylockmgr::getExecuteWriteLock(), Catalog_Namespace::SysCatalog::instance(), new_owner_, old_owners_, and DdlCommand::session_ptr_.
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 409 of file DdlCommandExecutor.h.
Referenced by execute(), and ReassignOwnedCommand().
|
private |
Definition at line 407 of file DdlCommandExecutor.h.
Referenced by execute(), and ReassignOwnedCommand().
|
private |
Definition at line 408 of file DdlCommandExecutor.h.
Referenced by execute(), and ReassignOwnedCommand().