45 #include <QtSql/qsqldriver.h> 46 #include <QtSql/qsqlresult.h> 47 #include <QtSql/private/qsqlcachedresult_p.h> 52 #define Q_EXPORT_SQLDRIVER_SQLITE 54 #define Q_EXPORT_SQLDRIVER_SQLITE Q_SQL_EXPORT 105 bool beginTransaction();
106 bool commitTransaction();
107 bool rollbackTransaction();
123 #endif // QSQL_SQLITE_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 lastInsertId() const
Returns the object ID of the most recent inserted row if the database supports it.
#define QT_END_NAMESPACE
This macro expands to.
QVariant handle() const
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
DriverFeature
This enum contains a list of features a driver might support.
The QSqlRecord class encapsulates a database record.
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.
The QStringList class provides a list of strings.
#define Q_EXPORT_SQLDRIVER_SQLITE
bool gotoNext(QSqlCachedResult::ValueCache &row, int idx)
bool prepare(const QString &query)
Prepares the given query for execution; the query will normally use placeholders so that it can be ex...
QSQLiteResult(const QSQLiteDriver *db)
friend class QSQLiteDriver
bool reset(const QString &query)
Sets the result to use the SQL statement query for subsequent data retrieval.
int size()
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
bool exec()
Executes the query, returning true if successful; otherwise returns false.
void virtual_hook(int id, void *data)
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 numRowsAffected()
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
int open(const char *, int,...)