18#include <QtSql/qsqldriver.h>
22#define Q_EXPORT_SQLDRIVER_IBASE
24#define Q_EXPORT_SQLDRIVER_IBASE Q_SQL_EXPORT
27static_assert(FB_API_VER >= 20,
"Qt requires at least the Firebird 2.0 client APIs.");
49 const QString &connOpts)
override;
55 void close()
override;
75 void qHandleEventNotification(
void* updatedResultBuffer);
bool open(const QString &db, const QString &user, const QString &password, const QString &host, int port)
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
virtual QString formatValue(const QSqlField &field, bool trimStrings=false) const
Returns a string representation of the field value for the database.
virtual bool commitTransaction()
This function is called to commit a transaction.
virtual QSqlResult * createResult() const =0
Creates an empty SQL result on the database.
virtual bool unsubscribeFromNotification(const QString &name)
This function is called to unsubscribe from event notifications from the database.
virtual QSqlIndex primaryIndex(const QString &tableName) const
Returns the primary index for table tableName.
virtual bool beginTransaction()
This function is called to begin a transaction.
virtual QSqlRecord record(const QString &tableName) const
Returns a QSqlRecord populated with the names of the fields in table tableName.
DriverFeature
This enum contains a list of features a driver might support.
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...
virtual QString escapeIdentifier(const QString &identifier, IdentifierType type) const
Returns the identifier escaped according to the database rules.
virtual QVariant handle() const
Returns the low-level database handle wrapped in a QVariant or an invalid variant if there is no hand...
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 int maximumIdentifierLength(IdentifierType type) const
virtual bool hasFeature(DriverFeature f) const =0
Returns true if the driver supports feature feature; otherwise returns false.
virtual bool subscribeToNotification(const QString &name)
This function is called to subscribe to event notifications from the database.
virtual QStringList tables(QSql::TableType tableType) const
Returns a list of the names of the tables in the database.
virtual QStringList subscribedToNotifications() const
Returns a list of the names of the event notifications that are currently subscribed to.
The QSqlField class manipulates the fields in SQL database tables and views.
The QSqlIndex class provides functions to manipulate and describe database indexes.
The QSqlRecord class encapsulates a database record.
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection * connection
GLenum GLenum GLsizei void * table
#define Q_EXPORT_SQLDRIVER_IBASE
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent