Public Member Functions | |
NSqlQuery (void) | |
Constructs a NSqlQuery object. | |
NSqlQuery (const NString &query) | |
Constructs a NSqlQuery object. | |
NSqlQuery (const NSqlQuery &other) | |
Copy constructor. | |
~NSqlQuery (void) | |
Destroys a NSqlQuery object. | |
bool | bindValue (const NString &name, const NVtype &value) |
Bind an identified mask name to a value. | |
bool | addBindValue (const NVtype &value) |
Bind an predefined mask name to a value. | |
void | set (const NString &query) |
Sets the current query. | |
NString | get (void) const |
Gets the current query. |
Definition at line 37 of file nsqlquery.h.
Constructs a NSqlQuery object.
query | SQL query |
Definition at line 32 of file nsqlquery.cpp.
Copy constructor.
other | Object to be copied |
Definition at line 40 of file nsqlquery.cpp.
Bind an identified mask name to a value.
name | Mask name | |
value | Value to be bound. |
Definition at line 53 of file nsqlquery.cpp.
References NString::find(), NString::NOT_FOUND, NString::replace_first(), and NVtype::toString().
bool addBindValue | ( | const NVtype & | value | ) |
Bind an predefined mask name to a value.
value | Value to be bound. |
Definition at line 63 of file nsqlquery.cpp.
References NString::find(), NString::NOT_FOUND, NString::replace_first(), and NVtype::toString().
void set | ( | const NString & | query | ) |
NString get | ( | void | ) | const |
Gets the current query.
Definition at line 78 of file nsqlquery.cpp.
Referenced by NMySql::execSql().