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

ValuesAsRows, ValuesAsColumns

Public Functions Index

QSqlQuery (QSqlResult *r)
QSqlQuery (const QString &query=QString(), QSqlDatabase db=QSqlDatabase())
QSqlQuery (QSqlDatabase db)
QSqlQuery (const QSqlQuery &other)
~QSqlQuery ()
voidaddBindValue (const QVariant &val, QSql::ParamType type=QSql::In)
intat () const
voidbindValue (const QString &placeholder, const QVariant &val, QSql::ParamType type=QSql::In)
voidbindValue (int pos, const QVariant &val, QSql::ParamType type=QSql::In)
QVariantboundValue (const QString &placeholder) const
QVariantboundValue (int pos) const
QMap< QString, QVariant >boundValues () const
voidclear ()
const QSqlDriver *driver () const
boolexec (const QString &query)
boolexec ()
boolexecBatch (BatchExecutionMode mode=ValuesAsRows)
QStringexecutedQuery () const
voidfinish ()
boolfirst ()
boolisActive () const
boolisForwardOnly () const
boolisNull (int field) const
boolisSelect () const
boolisValid () const
boollast ()
QSqlErrorlastError () const
QVariantlastInsertId () const
QStringlastQuery () const
boolnext ()
boolnextResult ()
QSql::NumericalPrecisionPolicynumericalPrecisionPolicy () const
intnumRowsAffected () const
QSqlQuery &operator= (const QSqlQuery &other)
boolprepare (const QString &query)
boolprevious ()
QSqlRecordrecord () const
const QSqlResult *result () const
boolseek (int i, bool relative=false)
voidsetForwardOnly (bool forward)
voidsetNumericalPrecisionPolicy (QSql::NumericalPrecisionPolicy precisionPolicy)
intsize () const
QVariantvalue (int i) const

Public Types

BatchExecutionMode

ValuesAsRows
ValuesAsColumns

Public Functions

QSqlQuery (

QSqlQuery (

QSqlQuery (

QSqlQuery (

~QSqlQuery ()

Destructor.

void addBindValue (
  • const QVariant &val,
  • QSql::ParamTypetype )

int at ()

void bindValue (

void bindValue (
  • intpos,
  • const QVariant &val,
  • QSql::ParamTypetype )

QVariant boundValue (

QVariant boundValue (
  • intpos)

QMap< QString, QVariant > boundValues ()

void clear ()

const QSqlDriver * driver ()

bool exec (

bool exec ()

bool execBatch (
  • BatchExecutionModemode)

QString executedQuery ()

void finish ()

bool first ()

bool isActive ()

bool isForwardOnly ()

bool isNull (
  • intfield)

bool isSelect ()

bool isValid ()

bool last ()

QSqlError lastError ()

QVariant lastInsertId ()

QString lastQuery ()

bool next ()

bool nextResult ()

QSql::NumericalPrecisionPolicy numericalPrecisionPolicy ()

int numRowsAffected ()

QSqlQuery & operator= (

bool prepare (

bool previous ()

QSqlRecord record ()

const QSqlResult * result ()

bool seek (
  • inti,
  • boolrelative )

void setForwardOnly (
  • boolforward)

void setNumericalPrecisionPolicy (
  • QSql::NumericalPrecisionPolicyprecisionPolicy)

int size ()

QVariant value (
  • inti)

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus