Home
·
All Classes
·
Modules
QSqlQuery Class Reference
[
QtSql
module]
Types
enum
BatchExecutionMode
{ ValuesAsRows, ValuesAsColumns }
Methods
__init__
(
self
, QSqlResult)
__init__
(
self
, QString
query
= QString(), QSqlDatabase
db
= QSqlDatabase())
__init__
(
self
, QSqlDatabase)
__init__
(
self
, QSqlQuery)
addBindValue
(
self
, QVariant, QSql.ParamType
type
= QSql.In)
int
at
(
self
)
bindValue
(
self
, QString, QVariant, QSql.ParamType
type
= QSql.In)
bindValue
(
self
, int, QVariant, QSql.ParamType
type
= QSql.In)
QVariant
boundValue
(
self
, QString)
QVariant
boundValue
(
self
, int)
dict-of-QString-QVariant
boundValues
(
self
)
clear
(
self
)
QSqlDriver
driver
(
self
)
bool
exec_
(
self
, QString)
bool
exec_
(
self
)
bool
execBatch
(
self
, BatchExecutionMode
mode
= QSqlQuery.ValuesAsRows)
QString
executedQuery
(
self
)
finish
(
self
)
bool
first
(
self
)
bool
isActive
(
self
)
bool
isForwardOnly
(
self
)
bool
isNull
(
self
, int)
bool
isSelect
(
self
)
bool
isValid
(
self
)
bool
last
(
self
)
QSqlError
lastError
(
self
)
QVariant
lastInsertId
(
self
)
QString
lastQuery
(
self
)
bool
next
(
self
)
bool
nextResult
(
self
)
QSql.NumericalPrecisionPolicy
numericalPrecisionPolicy
(
self
)
int
numRowsAffected
(
self
)
bool
prepare
(
self
, QString)
bool
previous
(
self
)
QSqlRecord
record
(
self
)
QSqlResult
result
(
self
)
bool
seek
(
self
, int, bool
relative
= False)
setForwardOnly
(
self
, bool)
setNumericalPrecisionPolicy
(
self
, QSql.NumericalPrecisionPolicy)
int
size
(
self
)
QVariant
value
(
self
, int)
Detailed Description
Type Documentation
QSqlQuery.BatchExecutionMode
Method Documentation
QSqlQuery.__init__ (
self
,
QSqlResult
)
QSqlQuery.__init__ (
self
, QString
query
= QString(),
QSqlDatabase
db
= QSqlDatabase())
QSqlQuery.__init__ (
self
,
QSqlDatabase
)
QSqlQuery.__init__ (
self
,
QSqlQuery
)
QSqlQuery.addBindValue (
self
, QVariant,
QSql.ParamType
type
= QSql.In)
int QSqlQuery.at (
self
)
QSqlQuery.bindValue (
self
, QString, QVariant,
QSql.ParamType
type
= QSql.In)
QSqlQuery.bindValue (
self
, int, QVariant,
QSql.ParamType
type
= QSql.In)
QVariant QSqlQuery.boundValue (
self
, QString)
QVariant QSqlQuery.boundValue (
self
, int)
dict-of-QString-QVariant QSqlQuery.boundValues (
self
)
QSqlQuery.clear (
self
)
QSqlDriver
QSqlQuery.driver (
self
)
bool QSqlQuery.exec_ (
self
, QString)
bool QSqlQuery.exec_ (
self
)
bool QSqlQuery.execBatch (
self
,
BatchExecutionMode
mode
= QSqlQuery.ValuesAsRows)
QString QSqlQuery.executedQuery (
self
)
QSqlQuery.finish (
self
)
bool QSqlQuery.first (
self
)
bool QSqlQuery.isActive (
self
)
bool QSqlQuery.isForwardOnly (
self
)
bool QSqlQuery.isNull (
self
, int)
bool QSqlQuery.isSelect (
self
)
bool QSqlQuery.isValid (
self
)
bool QSqlQuery.last (
self
)
QSqlError
QSqlQuery.lastError (
self
)
QVariant QSqlQuery.lastInsertId (
self
)
QString QSqlQuery.lastQuery (
self
)
bool QSqlQuery.next (
self
)
bool QSqlQuery.nextResult (
self
)
QSql.NumericalPrecisionPolicy
QSqlQuery.numericalPrecisionPolicy (
self
)
int QSqlQuery.numRowsAffected (
self
)
bool QSqlQuery.prepare (
self
, QString)
bool QSqlQuery.previous (
self
)
QSqlRecord
QSqlQuery.record (
self
)
QSqlResult
QSqlQuery.result (
self
)
bool QSqlQuery.seek (
self
, int, bool
relative
= False)
QSqlQuery.setForwardOnly (
self
, bool)
QSqlQuery.setNumericalPrecisionPolicy (
self
,
QSql.NumericalPrecisionPolicy
)
int QSqlQuery.size (
self
)
QVariant QSqlQuery.value (
self
, int)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0