45 #include <QtSql/qsqldriver.h> 46 #include <QtSql/qsqlresult.h> 48 #if defined (Q_OS_WIN32) 49 #include <QtCore/qt_windows.h> 53 #define Q_EXPORT_SQLDRIVER_ODBC 55 #define Q_EXPORT_SQLDRIVER_ODBC Q_SQL_EXPORT 59 #define HAVE_LONG_LONG 1 // force UnixODBC NOT to fall back to a struct for BIGINTs 128 bool trimStrings)
const;
142 bool beginTransaction();
143 bool commitTransaction();
144 bool rollbackTransaction();
158 #endif // QSQL_ODBC_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.
int size()
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
bool fetchPrevious()
Positions the result to the previous record (row) in the result.
bool fetchNext()
Positions the result to the next available record (row) in the result.
#define QT_END_NAMESPACE
This macro expands to.
DriverFeature
This enum contains a list of features a driver might support.
int numRowsAffected()
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
bool fetchLast()
Positions the result to the last record (last row) in the result.
QVariant data(int field)
Returns the data for field index in the current row as a QVariant.
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 fetchFirst()
Positions the result to the first record (row 0) in the result.
virtual void setForwardOnly(bool forward)
Sets forward only mode to forward.
#define Q_EXPORT_SQLDRIVER_ODBC
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool fetch(int i)
Positions the result to an arbitrary (zero-based) row index.
void virtual_hook(int id, void *data)
bool isNull(int field)
Returns true if the field at position index in the current row is null; otherwise returns false...
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...
QODBCResult(const QODBCDriver *db, QODBCDriverPrivate *p)
bool exec()
Executes the query, returning true if successful; otherwise returns false.
The QSqlField class manipulates the fields in SQL database tables and views.
QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases...
QVariant handle() const
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
IdentifierType
This enum contains a list of SQL identifier types.
bool reset(const QString &query)
Sets the result to use the SQL statement query for subsequent data retrieval.
int open(const char *, int,...)