OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DdlCommand Class Referenceabstract

#include <DdlCommandExecutor.h>

+ Inheritance diagram for DdlCommand:
+ Collaboration diagram for DdlCommand:

Public Member Functions

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

Protected Member Functions

bool isDefaultServer (const std::string &server_name)
 

Protected Attributes

const DdlCommandDataddl_data_
 
std::shared_ptr
< Catalog_Namespace::SessionInfo
const
session_ptr_
 

Detailed Description

Definition at line 38 of file DdlCommandExecutor.h.

Constructor & Destructor Documentation

DdlCommand::DdlCommand ( const DdlCommandData ddl_data,
std::shared_ptr< Catalog_Namespace::SessionInfo const session_ptr 
)
inline

Definition at line 40 of file DdlCommandExecutor.h.

42  : ddl_data_(ddl_data), session_ptr_(session_ptr) {}
const DdlCommandData & ddl_data_
std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr_

Member Function Documentation

virtual ExecutionResult DdlCommand::execute ( )
pure virtual

Executes the DDL command corresponding to provided JSON payload.

Parameters
_returnresult of DDL command execution (if applicable)

Implemented in ReassignOwnedCommand, RefreshForeignTablesCommand, ShowRolesCommand, ShowUserDetailsCommand, ShowDiskCacheUsageCommand, ShowDatabasesCommand, ShowTableDetailsCommand, ShowTablesCommand, ShowForeignServersCommand, AlterForeignTableCommand, DropForeignTableCommand, CreateForeignTableCommand, DropForeignServerCommand, AlterForeignServerCommand, and CreateForeignServerCommand.

Referenced by omnisci.cursor.Cursor::executemany().

+ Here is the caller graph for this function:

bool DdlCommand::isDefaultServer ( const std::string &  server_name)
protected

Definition at line 38 of file DdlCommandExecutor.cpp.

Referenced by CreateForeignServerCommand::execute(), AlterForeignServerCommand::execute(), DropForeignServerCommand::execute(), AlterForeignServerCommand::renameForeignServer(), and CreateForeignTableCommand::setTableDetails().

38  {
39  return boost::iequals(server_name.substr(0, 7), "omnisci");
40 }

+ Here is the caller graph for this function:

Member Data Documentation

const DdlCommandData& DdlCommand::ddl_data_
protected

Definition at line 52 of file DdlCommandExecutor.h.

Referenced by AlterForeignServerCommand::AlterForeignServerCommand(), AlterForeignTableCommand::AlterForeignTableCommand(), AlterForeignTableCommand::alterOptions(), AlterForeignServerCommand::changeForeignServerOwner(), CreateForeignServerCommand::CreateForeignServerCommand(), DropForeignServerCommand::DropForeignServerCommand(), DropForeignTableCommand::DropForeignTableCommand(), CreateForeignServerCommand::execute(), AlterForeignServerCommand::execute(), DropForeignServerCommand::execute(), CreateForeignTableCommand::execute(), DropForeignTableCommand::execute(), AlterForeignTableCommand::execute(), ShowForeignServersCommand::execute(), ShowUserDetailsCommand::execute(), ShowRolesCommand::execute(), RefreshForeignTablesCommand::execute(), ShowTableDetailsCommand::getFilteredTableNames(), ShowDiskCacheUsageCommand::getFilteredTableNames(), AlterForeignServerCommand::hasAlterServerPrivileges(), ReassignOwnedCommand::ReassignOwnedCommand(), RefreshForeignTablesCommand::RefreshForeignTablesCommand(), AlterForeignTableCommand::renameColumn(), AlterForeignServerCommand::renameForeignServer(), AlterForeignTableCommand::renameTable(), CreateForeignTableCommand::setColumnDetails(), AlterForeignServerCommand::setForeignServerDataWrapper(), AlterForeignServerCommand::setForeignServerOptions(), CreateForeignTableCommand::setTableDetails(), ShowDiskCacheUsageCommand::ShowDiskCacheUsageCommand(), ShowForeignServersCommand::ShowForeignServersCommand(), and ShowTableDetailsCommand::ShowTableDetailsCommand().


The documentation for this class was generated from the following files: