Definition at line 63 of file qsqlquery.h.
#include <qsqlquery.h>
Public Types |
|
| enum | BatchExecutionMode { ValuesAsRows, ValuesAsColumns } |
Public Member Functions |
|
| QSqlQuery (QSqlResult *r) | |
| QSqlQuery (const QString &query=QString(), QSqlDatabase db=QSqlDatabase()) | |
| QSqlQuery (QSqlDatabase db) | |
| QSqlQuery (const QSqlQuery &other) | |
| QSqlQuery & | operator= (const QSqlQuery &other) |
| ~QSqlQuery () | |
| bool | isValid () const |
| bool | isActive () const |
| bool | isNull (int field) const |
| int | at () const |
| QString | lastQuery () const |
| int | numRowsAffected () const |
| QSqlError | lastError () const |
| bool | isSelect () const |
| int | size () const |
| const QSqlDriver * | driver () const |
| const QSqlResult * | result () const |
| bool | isForwardOnly () const |
| QSqlRecord | record () const |
| void | setForwardOnly (bool forward) |
| bool | exec (const QString &query) |
| QVariant | value (int i) const |
| void | setNumericalPrecisionPolicy (QSql::NumericalPrecisionPolicy precisionPolicy) |
| QSql::NumericalPrecisionPolicy | numericalPrecisionPolicy () const |
| bool | seek (int i, bool relative=false) |
| bool | next () |
| bool | previous () |
| bool | first () |
| bool | last () |
| void | clear () |
| bool | exec () |
| bool | execBatch (BatchExecutionMode mode=ValuesAsRows) |
| bool | prepare (const QString &query) |
| 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) |
| void | addBindValue (const QVariant &val, QSql::ParamType type=QSql::In) |
| QVariant | boundValue (const QString &placeholder) const |
| QVariant | boundValue (int pos) const |
| QMap< QString, QVariant > | boundValues () const |
| QString | executedQuery () const |
| QVariant | lastInsertId () const |
| void | finish () |
| bool | nextResult () |
| enum BatchExecutionMode |
Definition at line 107 of file qsqlquery.h.
{ ValuesAsRows, ValuesAsColumns };
| QSqlQuery | ( | QSqlResult * | r | ) |
| QSqlQuery | ( | const QString & | query = QString(), |
| QSqlDatabase | db = QSqlDatabase() |
||
| ) |
| QSqlQuery | ( | QSqlDatabase | db | ) | [explicit] |
| ~QSqlQuery | ( | ) |
| bool isValid | ( | ) | const |
| bool isActive | ( | ) | const |
| bool isNull | ( | int | field | ) | const |
| int at | ( | ) | const |
| QString lastQuery | ( | ) | const |
| int numRowsAffected | ( | ) | const |
| QSqlError lastError | ( | ) | const |
| bool isSelect | ( | ) | const |
| int size | ( | ) | const |
| const QSqlDriver* driver | ( | ) | const |
| const QSqlResult* result | ( | ) | const |
| bool isForwardOnly | ( | ) | const |
| QSqlRecord record | ( | ) | const |
| void setForwardOnly | ( | bool | forward | ) |
| bool exec | ( | const QString & | query | ) |
| QVariant value | ( | int | i | ) | const |
| void setNumericalPrecisionPolicy | ( | QSql::NumericalPrecisionPolicy | precisionPolicy | ) |
| QSql::NumericalPrecisionPolicy numericalPrecisionPolicy | ( | ) | const |
| bool seek | ( | int | i, |
| bool | relative =
false |
||
| ) |
| bool next | ( | ) |
| bool previous | ( | ) |
| bool first | ( | ) |
| bool last | ( | ) |
| void clear | ( | ) |
| bool exec | ( | ) |
| bool execBatch | ( | BatchExecutionMode | mode =
ValuesAsRows |
) |
| bool prepare | ( | const QString & | query | ) |
| void bindValue | ( | int | pos, |
| const QVariant & | val, | ||
| QSql::ParamType | type =
QSql::In |
||
| ) |
| void addBindValue | ( | const QVariant & | val, |
| QSql::ParamType | type =
QSql::In |
||
| ) |
| QVariant boundValue | ( | int | pos | ) | const |
| QString executedQuery | ( | ) | const |
| QVariant lastInsertId | ( | ) | const |
| void finish | ( | ) |
| bool nextResult | ( | ) |