drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
slave::SQLExecutor Class Reference
Inheritance diagram for slave::SQLExecutor:
[legend]
Collaboration diagram for slave::SQLExecutor:
[legend]

Public Member Functions

 SQLExecutor (const std::string &user, const std::string &schema)
void markInErrorState ()
void clearErrorState ()
const std::string & getErrorMessage () const
bool executeSQL (std::vector< std::string > &sql)

Protected Attributes

drizzled::Session::shared_ptr _session

Private Attributes

bool _in_error_state
std::string _error_message

Detailed Description

Definition at line 29 of file slave/sql_executor.h.

Constructor & Destructor Documentation

◆ SQLExecutor()

slave::SQLExecutor::SQLExecutor ( const std::string & user,
const std::string & schema )

Definition at line 37 of file slave/sql_executor.cc.

Member Function Documentation

◆ clearErrorState()

void slave::SQLExecutor::clearErrorState ( )
inline

Definition at line 40 of file slave/sql_executor.h.

◆ executeSQL()

bool slave::SQLExecutor::executeSQL ( std::vector< std::string > & sql)

Execute a batch of SQL statements.

Parameters
sqlBatch of SQL statements to execute.
Return values
trueSuccess
falseFailure

Definition at line 49 of file slave/sql_executor.cc.

◆ getErrorMessage()

const std::string & slave::SQLExecutor::getErrorMessage ( ) const
inline

Definition at line 45 of file slave/sql_executor.h.

◆ markInErrorState()

void slave::SQLExecutor::markInErrorState ( )
inline

Definition at line 35 of file slave/sql_executor.h.

Member Data Documentation

◆ _error_message

std::string slave::SQLExecutor::_error_message
private

Definition at line 65 of file slave/sql_executor.h.

◆ _in_error_state

bool slave::SQLExecutor::_in_error_state
private

Definition at line 64 of file slave/sql_executor.h.

◆ _session

drizzled::Session::shared_ptr slave::SQLExecutor::_session
protected

Definition at line 61 of file slave/sql_executor.h.


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