OmniSciDB  2e3a973ef4
DdlCommand Class Referenceabstract

#include <DdlCommandExecutor.h>

+ Inheritance diagram for DdlCommand:

Public Member Functions

 DdlCommand (const rapidjson::Value &ddl_payload, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr)
 
virtual void execute (TQueryResult &_return)=0
 

Protected Member Functions

bool isDefaultServer (const std::string &server_name)
 

Protected Attributes

const rapidjson::Value & ddl_payload_
 
std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr_
 

Detailed Description

Definition at line 32 of file DdlCommandExecutor.h.

Constructor & Destructor Documentation

◆ DdlCommand()

DdlCommand::DdlCommand ( const rapidjson::Value &  ddl_payload,
std::shared_ptr< Catalog_Namespace::SessionInfo const >  session_ptr 
)
inline

Definition at line 34 of file DdlCommandExecutor.h.

References execute().

36  : ddl_payload_(ddl_payload), session_ptr_(session_ptr) {}
const rapidjson::Value & ddl_payload_
std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr_
+ Here is the call graph for this function:

Member Function Documentation

◆ execute()

virtual void DdlCommand::execute ( TQueryResult &  _return)
pure virtual

Executes the DDL command corresponding to provided JSON payload.

Parameters
_returnresult of DDL command execution (if applicable)

Implemented in RefreshForeignTablesCommand, ShowDatabasesCommand, ShowTablesCommand, ShowForeignServersCommand, DropForeignTableCommand, CreateForeignTableCommand, DropForeignServerCommand, AlterForeignServerCommand, and CreateForeignServerCommand.

Referenced by DdlCommand().

+ Here is the caller graph for this function:

◆ isDefaultServer()

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

Definition at line 32 of file DdlCommandExecutor.cpp.

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

32  {
33  return boost::iequals(server_name.substr(0, 7), "omnisci");
34 }
+ Here is the caller graph for this function:

Member Data Documentation

◆ ddl_payload_

◆ session_ptr_


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