45 #include <QtSql/qsqldriver.h> 46 #include <QtSql/qsqlresult.h> 47 #include <QtSql/private/qsqlcachedresult_p.h> 52 #define Q_EXPORT_SQLDRIVER_SYMSQL 54 #define Q_EXPORT_SQLDRIVER_SYMSQL Q_SQL_EXPORT 114 bool beginTransaction();
115 bool commitTransaction();
116 bool rollbackTransaction();
132 #endif // QSQL_SYMSQL_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 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.
int size()
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
DriverFeature
This enum contains a list of features a driver might support.
bool fetch(int i)
Positions the result to an arbitrary (zero-based) row index.
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.
bool isNull(int i)
Returns true if the field at position index in the current row is null; otherwise returns false...
int numRowsAffected()
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
bool fetchFirst()
Positions the result to the first record (row 0) in the result.
QSymSQLResult(const QSymSQLDriver *db)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool fetchLast()
Positions the result to the last record (last row) in the result.
#define Q_EXPORT_SQLDRIVER_SYMSQL
The QStringList class provides a list of strings.
bool exec()
Executes the query, returning true if successful; otherwise returns false.
friend class QSymSQLDriver
QVariant lastInsertId() const
Returns the object ID of the most recent inserted row if the database supports it.
QVariant data(int field)
Returns the data for field index in the current row as a QVariant.
bool prepare(const QString &query)
Prepares the given query for execution; the query will normally use placeholders so that it can be ex...
bool fetchPrevious()
Positions the result to the previous record (row) in the result.
bool reset(const QString &query)
Sets the result to use the SQL statement query for subsequent data retrieval.
bool fetchNext()
Positions the result to the next available record (row) in the result.
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,...)
void virtual_hook(int id, void *data)