|
Lbug C++ API
|
A prepared statement is a parameterized query which can avoid planning the same query for repeated execution. More...
#include <prepared_statement.h>
Public Member Functions | |
| LBUG_API | ~PreparedStatement () |
| LBUG_API bool | isSuccess () const |
| LBUG_API std::string | getErrorMessage () const |
| LBUG_API bool | isReadOnly () const |
| const std::unordered_set< std::string > & | getUnknownParameters () const |
| std::unordered_set< std::string > | getKnownParameters () |
| void | updateParameter (const std::string &name, common::Value *value) |
| void | addParameter (const std::string &name, common::Value *value) |
| std::string | getName () const |
| common::StatementType | getStatementType () const |
Static Public Member Functions | |
| static std::unique_ptr< PreparedStatement > | getPreparedStatementWithError (const std::string &errorMessage) |
Friends | |
| class | Connection |
| class | ClientContext |
A prepared statement is a parameterized query which can avoid planning the same query for repeated execution.
| LBUG_API lbug::main::PreparedStatement::~PreparedStatement | ( | ) |
| void lbug::main::PreparedStatement::addParameter | ( | const std::string & | name, |
| common::Value * | value ) |
| LBUG_API std::string lbug::main::PreparedStatement::getErrorMessage | ( | ) | const |
| std::unordered_set< std::string > lbug::main::PreparedStatement::getKnownParameters | ( | ) |
|
inline |
|
static |
| common::StatementType lbug::main::PreparedStatement::getStatementType | ( | ) | const |
|
inline |
| LBUG_API bool lbug::main::PreparedStatement::isReadOnly | ( | ) | const |
| LBUG_API bool lbug::main::PreparedStatement::isSuccess | ( | ) | const |
| void lbug::main::PreparedStatement::updateParameter | ( | const std::string & | name, |
| common::Value * | value ) |
|
friend |
|
friend |