QSqlQuery
#include <QtSql/QSqlQuery>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QSqlQuery
Overview
Public Types Index
enum BatchExecutionMode |
Public Functions Index
QSqlQuery (QSqlResult *r) | |
QSqlQuery (const QString &query=QString(), QSqlDatabase db=QSqlDatabase()) | |
QSqlQuery (QSqlDatabase db) | |
QSqlQuery (const QSqlQuery &other) | |
~QSqlQuery () | |
void | addBindValue (const QVariant &val, QSql::ParamType type=QSql::In) |
int | at () const |
void | bindValue (const QString &placeholder, const QVariant &val, QSql::ParamType type=QSql::In) |
void | bindValue (int pos, const QVariant &val, QSql::ParamType type=QSql::In) |
QVariant | boundValue (const QString &placeholder) const |
QVariant | boundValue (int pos) const |
QMap< QString, QVariant > | boundValues () const |
void | clear () |
const QSqlDriver * | driver () const |
bool | exec (const QString &query) |
bool | exec () |
bool | execBatch (BatchExecutionMode mode=ValuesAsRows) |
QString | executedQuery () const |
void | finish () |
bool | first () |
bool | isActive () const |
bool | isForwardOnly () const |
bool | isNull (int field) const |
bool | isSelect () const |
bool | isValid () const |
bool | last () |
QSqlError | lastError () const |
QVariant | lastInsertId () const |
QString | lastQuery () const |
bool | next () |
bool | nextResult () |
QSql::NumericalPrecisionPolicy | numericalPrecisionPolicy () const |
int | numRowsAffected () const |
QSqlQuery & | operator= (const QSqlQuery &other) |
bool | prepare (const QString &query) |
bool | previous () |
QSqlRecord | record () const |
const QSqlResult * | result () const |
bool | seek (int i, bool relative=false) |
void | setForwardOnly (bool forward) |
void | setNumericalPrecisionPolicy (QSql::NumericalPrecisionPolicy precisionPolicy) |
int | size () const |
QVariant | value (int i) const |
Public Types
- ValuesAsRows
- ValuesAsColumns
Public Functions
Destructor.
void
int
void
void
void
const QSqlDriver *
bool
bool
bool
void
bool
bool
bool
bool
bool
bool
bool
bool
bool
QSql::NumericalPrecisionPolicy
int
bool
bool
const QSqlResult *
bool
void
void
int
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy