18#include <QtSql/qsqldriver.h>
23#define Q_EXPORT_SQLDRIVER_SQLITE
25#define Q_EXPORT_SQLDRIVER_SQLITE Q_SQL_EXPORT
48 const QString & connOpts)
override;
49 void close()
override;
65 void handleNotification(
const QString &tableName,
qint64 rowid);
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
virtual bool commitTransaction()
This function is called to commit a transaction.
IdentifierType
This enum contains a list of SQL identifier types.
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 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 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_SQLITE
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent