OmniSciDB  bf83d84833
 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_
 
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 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)
protected

Definition at line 38 of file DdlCommandExecutor.cpp.

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

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

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