42 #ifndef QSQL_SQLITE2_H 43 #define QSQL_SQLITE2_H 45 #include <QtSql/qsqldriver.h> 46 #include <QtSql/qsqlresult.h> 47 #include <QtSql/qsqlrecord.h> 48 #include <QtSql/qsqlindex.h> 49 #include <QtSql/private/qsqlcachedresult_p.h> 51 #if defined (Q_OS_WIN32) 52 # include <QtCore/qt_windows.h> 105 int port) {
return open (db, user, password, host, port,
QString()); }
108 bool beginTransaction();
109 bool commitTransaction();
110 bool rollbackTransaction();
126 #endif // QSQL_SQLITE2_H 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.
QVariant data(int i)
Returns the data for field index in the current row as a QVariant.
QVariant handle() const
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
#define QT_END_NAMESPACE
This macro expands to.
DriverFeature
This enum contains a list of features a driver might support.
QSQLite2Result(const QSQLite2Driver *db)
The QSqlRecord class encapsulates a database record.
void virtual_hook(int id, void *data)
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.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int size()
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
friend class QSQLite2Driver
The QStringList class provides a list of strings.
QSQLite2ResultPrivate * d
bool gotoNext(QSqlCachedResult::ValueCache &row, int idx)
int numRowsAffected()
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
bool reset(const QString &query)
Sets the result to use the SQL statement query for subsequent data retrieval.
bool open(const QString &db, const QString &user, const QString &password, const QString &host, int port)
QSQLite2DriverPrivate * d
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,...)
QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.