OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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_
< Catalog_Namespace::SessionInfo

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 

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.

_returnresult of DDL command execution (if applicable)

Implemented in RefreshForeignTablesCommand, 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)

Definition at line 39 of file DdlCommandExecutor.cpp.

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

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

+ Here is the caller graph for this function:

Member Data Documentation

const DdlCommandData& DdlCommand::ddl_data_

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