Public Member Functions | Protected Attributes

mysqlpl::SqlQuery Class Reference

Collaboration diagram for mysqlpl::SqlQuery:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 this (in char[] sql)
void where (in char[] cond)
char[] get_sql ()
void bind_param (BindPar par)
BindVector get_params ()

Protected Attributes

char[] _sql
char[] _cond
BindVector _param_bind_vector

Detailed Description

Definition at line 1189 of file mysqlpl.d.


Constructor & Destructor Documentation

mysqlpl::SqlQuery::this ( in char[]  sql ) [inline]

Definition at line 1191 of file mysqlpl.d.

    {
        _param_bind_vector = new BindVector;

        _sql = sql;
    }

Member Function Documentation

void mysqlpl::SqlQuery::bind_param ( BindPar  par ) [inline]

Definition at line 1213 of file mysqlpl.d.

References mysqlpl::BindVector::bind().

    {
        int idx = _param_bind_vector.length();

        _param_bind_vector.resize(idx+1);

        _param_bind_vector.bind(idx, par);
    }

Here is the call graph for this function:

BindVector mysqlpl::SqlQuery::get_params (  ) [inline]

Definition at line 1222 of file mysqlpl.d.

    {
        return _param_bind_vector;
    }
char [] mysqlpl::SqlQuery::get_sql (  ) [inline]

Definition at line 1208 of file mysqlpl.d.

    {
        return _sql ~ _cond;
    }
void mysqlpl::SqlQuery::where ( in char[]  cond ) [inline]

Definition at line 1198 of file mysqlpl.d.

    {
        if (!_cond.length)
            _cond ~= "\nwhere   ";
        else
            _cond ~= "\nand ";

        _cond ~= cond;
    }

Member Data Documentation

char [] mysqlpl::SqlQuery::_cond [protected]

Definition at line 1229 of file mysqlpl.d.

Definition at line 1231 of file mysqlpl.d.

char [] mysqlpl::SqlQuery::_sql [protected]

Definition at line 1228 of file mysqlpl.d.


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