Quark
0.1
|
A value binder for a QSqlQuery object. More...
#include <SqlValueBinder.h++>
Public Member Functions | |
SqlValueBinder (QSqlQuery &query) | |
Constructs a new SqlValueBinder for the given query. More... | |
~SqlValueBinder () | |
Destructor. More... | |
template<typename T > | |
SqlValueBinder & | operator<< (const T &value) |
Binds a value to the next query parameter. More... | |
template<typename T > | |
SqlValueBinder & | operator>> (T &value) |
Extracts a value from the next field in the results. More... | |
void | reset () |
Reset the SqlValueBinder. More... | |
A value binder for a QSqlQuery object.
This class provides for convenient binding of values to consecutive query parameters through the chaining of the left-shift operator, and extraction of values in consecutive fields of query results through the chaining of the right-shift operator.
|
inline |
Constructs a new SqlValueBinder for the given query.
|
inline |
Destructor.
|
inline |
Binds a value to the next query parameter.
|
inline |
Extracts a value from the next field in the results.
|
inline |
Reset the SqlValueBinder.
The next binding/extraction will take place at the first parameter/field.