Class DdlCommand

class DdlCommand

Subclassed by AlterForeignServerCommand, AlterForeignTableCommand, CreateForeignServerCommand, CreateForeignTableCommand, CreatePolicyCommand, DropForeignServerCommand, DropForeignTableCommand, DropPolicyCommand, ReassignOwnedCommand, RefreshForeignTablesCommand, ShowDatabasesCommand, ShowDiskCacheUsageCommand, ShowForeignServersCommand, ShowPoliciesCommand, ShowRolesCommand, ShowTableDetailsCommand, ShowTablesCommand, ShowUserDetailsCommand

Public Functions

DdlCommand(const DdlCommandData &ddl_data, std::shared_ptr<Catalog_Namespace::SessionInfo const> session_ptr)
virtual ExecutionResult execute() = 0

Executes the DDL command corresponding to provided JSON payload.

Parameters
  • _return: result of DDL command execution (if applicable)

Protected Functions

bool isDefaultServer(const std::string &server_name)

Protected Attributes

const DdlCommandData &ddl_data_
std::shared_ptr<Catalog_Namespace::SessionInfo const> session_ptr_