46 #define Q_EXPORT_SQLDRIVER_DB2 48 #define Q_EXPORT_SQLDRIVER_DB2 Q_SQL_EXPORT 51 #include <QtSql/qsqlresult.h> 52 #include <QtSql/qsqldriver.h> 102 bool beginTransaction();
103 bool commitTransaction();
104 bool rollbackTransaction();
116 bool setAutoCommit(
bool autoCommit);
The QVariant class acts like a union for the most common Qt data types.
The QSqlIndex class provides functions to manipulate and describe database indexes.
bool reset(const QString &query)
Sets the result to use the SQL statement query for subsequent data retrieval.
#define QT_END_NAMESPACE
This macro expands to.
DriverFeature
This enum contains a list of features a driver might support.
QDB2Result(const QDB2Driver *dr, const QDB2DriverPrivate *dp)
bool fetchLast()
Positions the result to the last record (last row) in the result.
int numRowsAffected()
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
int size()
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
The QSqlRecord class encapsulates a database record.
bool isNull(int i)
Returns true if the field at position index in the current row is null; otherwise returns false...
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
#define Q_EXPORT_SQLDRIVER_DB2
#define QT_BEGIN_NAMESPACE
This macro expands to.
QVariant data(int field)
Returns the data for field index in the current row as a QVariant.
The QStringList class provides a list of strings.
bool prepare(const QString &query)
Prepares the given query for execution; the query will normally use placeholders so that it can be ex...
bool exec()
Executes the query, returning true if successful; otherwise returns false.
bool fetch(int i)
Positions the result to an arbitrary (zero-based) row index.
bool fetchNext()
Positions the result to the next available record (row) in the result.
bool fetchFirst()
Positions the result to the first record (row 0) in the result.
void virtual_hook(int id, void *data)
The QSqlField class manipulates the fields in SQL database tables and views.
QVariant handle() const
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases...
IdentifierType
This enum contains a list of SQL identifier types.
int open(const char *, int,...)