1 #ifndef __libquark_util_SqlValueBinder_hxx 2 #define __libquark_util_SqlValueBinder_hxx 35 _query.bindValue(_index, value);
45 QVariant variant = _query.value(_index);
46 value = variant.value<T>();
67 #endif // __libquark_util_SqlValueBinder_hxx SqlValueBinder & operator>>(T &value)
Extracts a value from the next field in the results.
Definition: SqlValueBinder.h++:43
SqlValueBinder(QSqlQuery &query)
Constructs a new SqlValueBinder for the given query.
Definition: SqlValueBinder.h++:21
~SqlValueBinder()
Destructor.
Definition: SqlValueBinder.h++:27
SqlValueBinder & operator<<(const T &value)
Binds a value to the next query parameter.
Definition: SqlValueBinder.h++:33
Definition: BarChartView.h++:6
void reset()
Reset the SqlValueBinder.
Definition: SqlValueBinder.h++:55
#define LIBQUARK_API
Definition: Quark.h++:18
A value binder for a QSqlQuery object.
Definition: SqlValueBinder.h++:16