#include <sql_executor.h>
Public Member Functions | |
| SQLExecutor (const string &schema) | |
| void | setErrorState () |
| void | clearErrorState () |
| const sql::Exception | getException () const |
| sql::ResultSet * | getResultSet () const |
| const string & | getSql () const |
| const drizzled::error_t & | getErr () const |
| bool | executeSQL (string &sql) |
Protected Attributes | |
| drizzled::Session::shared_ptr | _session |
Private Attributes | |
| bool | _in_error_state |
| sql::Exception | _exception |
| drizzled::error_t | _err |
| sql::ResultSet * | _result_set |
| string | _sql |
Execute given sql string.
Definition at line 54 of file sql_executor.h.
| drizzle_plugin::json_server::SQLExecutor::SQLExecutor | ( | const string & | schema | ) |
Constructor
| user | a constant string. |
| schema | a constant string. |
Definition at line 42 of file sql_executor.cc.
References _result_set, _session, and _sql.
|
inline |
set the error state as false.
Definition at line 76 of file sql_executor.h.
| bool drizzle_plugin::json_server::SQLExecutor::executeSQL | ( | string & | sql | ) |
execute a batch of SQL statements.
| sql | Batch of SQL statements to execute. |
Definition at line 55 of file sql_executor.cc.
References _err, _exception, _in_error_state, _result_set, _session, and _sql.
Referenced by drizzle_plugin::json_server::DBAccess::execute().
|
inline |
used to get error.
Definition at line 112 of file sql_executor.h.
Referenced by drizzle_plugin::json_server::DBAccess::execute().
|
inline |
used to get error execption which occurs while executing a sql.
Definition at line 85 of file sql_executor.h.
|
inline |
|
inline |
used to get sql string.
Definition at line 103 of file sql_executor.h.
|
inline |
set the error state as true.
Definition at line 68 of file sql_executor.h.
|
private |
Stores the error state of executing a sql.
Definition at line 143 of file sql_executor.h.
Referenced by executeSQL().
|
private |
Stores execption if one occurs while executing a sql query.
Definition at line 139 of file sql_executor.h.
Referenced by executeSQL().
|
private |
Stores whether an error has happened.
Definition at line 135 of file sql_executor.h.
Referenced by executeSQL().
|
private |
Stores resultset of a sql transaction.
Definition at line 147 of file sql_executor.h.
Referenced by executeSQL(), and SQLExecutor().
|
protected |
stores session.
Definition at line 129 of file sql_executor.h.
Referenced by executeSQL(), and SQLExecutor().
|
private |
Stores a sql string.
Definition at line 151 of file sql_executor.h.
Referenced by executeSQL(), and SQLExecutor().