45 #include <QtSql/qsqlresult.h> 46 #include <QtSql/qsqldriver.h> 47 #include <QtSql/private/qsqlcachedresult_p.h> 50 #define Q_EXPORT_SQLDRIVER_OCI 52 #define Q_EXPORT_SQLDRIVER_OCI Q_SQL_EXPORT 96 friend class QOCIPrivate;
114 bool trimStrings)
const;
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.
virtual bool rollbackTransaction()
This function is called to rollback a transaction.
virtual void close()=0
Derived classes must reimplement this pure virtual function in order to close the database connection...
#define QT_END_NAMESPACE
This macro expands to.
virtual QSqlIndex primaryIndex(const QString &tableName) const
Returns the primary index for table tableName.
DriverFeature
This enum contains a list of features a driver might support.
virtual QStringList tables(QSql::TableType tableType) const
Returns a list of the names of the tables in the database.
virtual bool hasFeature(DriverFeature f) const =0
Returns true if the driver supports feature feature; otherwise returns false.
virtual QString escapeIdentifier(const QString &identifier, IdentifierType type) const
Returns the identifier escaped according to the database rules.
#define Q_EXPORT_SQLDRIVER_OCI
virtual QSqlRecord record(const QString &tableName) const
Returns a QSqlRecord populated with the names of the fields in table tableName.
The QSqlRecord class encapsulates a database record.
virtual QSqlRecord record() const
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
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.
virtual bool open(const QString &db, const QString &user=QString(), const QString &password=QString(), const QString &host=QString(), int port=-1, const QString &connOpts=QString())=0
Derived classes must reimplement this pure virtual function to open a database connection on database...
virtual QVariant lastInsertId() const
Returns the object ID of the most recent inserted row if the database supports it.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual bool commitTransaction()
This function is called to commit a transaction.
virtual QVariant handle() const
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
virtual int numRowsAffected()=0
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
virtual bool exec()
Executes the query, returning true if successful; otherwise returns false.
virtual bool prepare(const QString &query)
Prepares the given query for execution; the query will normally use placeholders so that it can be ex...
virtual bool reset(const QString &sqlquery)=0
Sets the result to use the SQL statement query for subsequent data retrieval.
virtual QSqlResult * createResult() const =0
Creates an empty SQL result on the database.
virtual bool beginTransaction()
This function is called to begin a transaction.
virtual QString formatValue(const QSqlField &field, bool trimStrings=false) const
Returns a string representation of the field value for the database.
virtual bool gotoNext(ValueCache &values, int index)=0
virtual QVariant handle() const
Returns the low-level database handle wrapped in a QVariant or an invalid variant if there is no hand...
The QSqlField class manipulates the fields in SQL database tables and views.
virtual int size()=0
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
struct OCISvcCtx OCISvcCtx
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases...
void virtual_hook(int id, void *data)
IdentifierType
This enum contains a list of SQL identifier types.