#include <mysqlpl.h>

Public Member Functions | |
| SqlQuery (const char *sql) | |
| void | where (const char *cond) |
| std::string | get_sql () const |
| void | bind_param (BindPar par) |
| const BindVector & | get_params () const |
Protected Attributes | |
| std::string | _sql |
| std::string | _cond |
| BindVector | _param_bind_vector |
Definition at line 1178 of file mysqlpl.h.
| MySqlPL::SqlQuery::SqlQuery | ( | const char * | sql ) | [inline, explicit] |
| void MySqlPL::SqlQuery::bind_param | ( | BindPar | par ) |
Definition at line 821 of file mysqlpl.cpp.
References _param_bind_vector, and MySqlPL::BindVector::bind().
{
int idx = _param_bind_vector.size();
_param_bind_vector.resize(idx+1);
_param_bind_vector.bind(idx, par);
}

| const BindVector& MySqlPL::SqlQuery::get_params | ( | ) | const [inline] |
Definition at line 1202 of file mysqlpl.h.
References _param_bind_vector.
Referenced by MySqlPL::SqlStatement::execute().
{
return _param_bind_vector;
}

| std::string MySqlPL::SqlQuery::get_sql | ( | ) | const [inline] |
| void MySqlPL::SqlQuery::where | ( | const char * | cond ) | [inline] |
std::string MySqlPL::SqlQuery::_cond [protected] |
BindVector MySqlPL::SqlQuery::_param_bind_vector [protected] |
Definition at line 1211 of file mysqlpl.h.
Referenced by bind_param(), and get_params().
std::string MySqlPL::SqlQuery::_sql [protected] |
1.7.2