QtSql/qsqlquery.h Source File
Go to the documentation of this file.
60 template <class
Key, class T> class
QMap;
61 class QSqlQueryPrivate;
66 QSqlQuery(QSqlResult *
r);
69 QSqlQuery(
const QSqlQuery& other);
70 QSqlQuery&
operator=(
const QSqlQuery& other);
74 bool isActive()
const;
75 bool isNull(
int field)
const;
78 int numRowsAffected()
const;
80 bool isSelect()
const;
82 const QSqlDriver*
driver()
const;
83 const QSqlResult* result()
const;
84 bool isForwardOnly()
const;
87 void setForwardOnly(
bool forward);
89 QVariant
value(
int i)
const;
94 bool seek(
int i,
bool relative =
false);
98 inline QT3_SUPPORT
bool prev() {
return previous(); }
108 bool execBatch(BatchExecutionMode
mode = ValuesAsRows);
109 bool prepare(
const QString& query);
110 void bindValue(
const QString& placeholder,
const QVariant& val,
112 void bindValue(
int pos,
const QVariant& val, QSql::ParamType
type =
QSql::In);
113 void addBindValue(
const QVariant& val, QSql::ParamType
type =
QSql::In);
114 QVariant boundValue(
const QString& placeholder)
const;
115 QVariant boundValue(
int pos)
const;
118 QVariant lastInsertId()
const;
130 #endif // QSQLQUERY_H
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
QSqlDatabase & operator=(const QSqlDatabase &other)
QSqlError lastError() const
#define QT_BEGIN_NAMESPACE
QSqlDriver * driver() const
QSqlQuery exec(const QString &query=QString()) const
GLsizei const GLfloat * value
QSqlRecord record(const QString &tablename) const
void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy precisionPolicy)
QSql::NumericalPrecisionPolicy numericalPrecisionPolicy() const