QSqlDriver Class Reference
[QtSql module]
Inherits QObject.
Types
- enum DriverFeature { Transactions, QuerySize, BLOB, Unicode, ..., MultipleResultSets }
- enum IdentifierType { FieldName, TableName }
- enum StatementType { WhereStatement, SelectStatement, UpdateStatement, InsertStatement, DeleteStatement }
Methods
- __init__ (self, QObject parent = None)
- bool beginTransaction (self)
- close (self)
- bool commitTransaction (self)
- QSqlResult createResult (self)
- QString escapeIdentifier (self, QString, IdentifierType)
- QString formatValue (self, QSqlField, bool trimStrings = False)
- QVariant handle (self)
- bool hasFeature (self, DriverFeature)
- bool isIdentifierEscaped (self, QString, IdentifierType)
- bool isIdentifierEscapedImplementation (self, QString, IdentifierType)
- bool isOpen (self)
- bool isOpenError (self)
- QSqlError lastError (self)
- QSql.NumericalPrecisionPolicy numericalPrecisionPolicy (self)
- bool open (self, QString, QString user = QString(), QString password = QString(), QString host = QString(), int port = -1, QString options = QString())
- QSqlIndex primaryIndex (self, QString)
- QSqlRecord record (self, QString)
- bool rollbackTransaction (self)
- setLastError (self, QSqlError)
- setNumericalPrecisionPolicy (self, QSql.NumericalPrecisionPolicy)
- setOpen (self, bool)
- setOpenError (self, bool)
- QString sqlStatement (self, StatementType, QString, QSqlRecord, bool)
- QString stripDelimiters (self, QString, IdentifierType)
- QString stripDelimitersImplementation (self, QString, IdentifierType)
- QStringList subscribedToNotifications (self)
- QStringList subscribedToNotificationsImplementation (self)
- bool subscribeToNotification (self, QString)
- bool subscribeToNotificationImplementation (self, QString)
- QStringList tables (self, QSql.TableType)
- bool unsubscribeFromNotification (self, QString)
- bool unsubscribeFromNotificationImplementation (self, QString)
Qt Signals
Detailed Description
Type Documentation
QSqlDriver.DriverFeature
QSqlDriver.IdentifierType
QSqlDriver.StatementType
Method Documentation
QSqlDriver.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QSqlDriver.beginTransaction (self)
QSqlDriver.close (self)
This method is abstract and should be reimplemented in any sub-class.
bool QSqlDriver.commitTransaction (self)
QSqlResult QSqlDriver.createResult (self)
This method is abstract and should be reimplemented in any sub-class.
QString QSqlDriver.escapeIdentifier (self, QString, IdentifierType)
QString QSqlDriver.formatValue (self, QSqlField, bool trimStrings = False)
QVariant QSqlDriver.handle (self)
bool QSqlDriver.hasFeature (self, DriverFeature)
This method is abstract and should be reimplemented in any sub-class.
bool QSqlDriver.isIdentifierEscaped (self, QString, IdentifierType)
bool QSqlDriver.isIdentifierEscapedImplementation (self, QString, IdentifierType)
This method is also a Qt slot with the C++ signature bool isIdentifierEscapedImplementation(const QString&,QSqlDriver::IdentifierType) const.
bool QSqlDriver.isOpen (self)
bool QSqlDriver.isOpenError (self)
QSqlError QSqlDriver.lastError (self)
bool QSqlDriver.open (self, QString, QString user = QString(), QString password = QString(), QString host = QString(), int port = -1, QString options = QString())
This method is abstract and should be reimplemented in any sub-class.
QSqlIndex QSqlDriver.primaryIndex (self, QString)
QSqlRecord QSqlDriver.record (self, QString)
bool QSqlDriver.rollbackTransaction (self)
QSqlDriver.setLastError (self, QSqlError)
QSqlDriver.setOpen (self, bool)
QSqlDriver.setOpenError (self, bool)
QString QSqlDriver.sqlStatement (self, StatementType, QString, QSqlRecord, bool)
QString QSqlDriver.stripDelimiters (self, QString, IdentifierType)
QString QSqlDriver.stripDelimitersImplementation (self, QString, IdentifierType)
This method is also a Qt slot with the C++ signature QString stripDelimitersImplementation(const QString&,QSqlDriver::IdentifierType) const.
QStringList QSqlDriver.subscribedToNotifications (self)
QStringList QSqlDriver.subscribedToNotificationsImplementation (self)
This method is also a Qt slot with the C++ signature QStringList subscribedToNotificationsImplementation() const.
bool QSqlDriver.subscribeToNotification (self, QString)
bool QSqlDriver.subscribeToNotificationImplementation (self, QString)
This method is also a Qt slot with the C++ signature bool subscribeToNotificationImplementation(const QString&).
QStringList QSqlDriver.tables (self, QSql.TableType)
bool QSqlDriver.unsubscribeFromNotification (self, QString)
bool QSqlDriver.unsubscribeFromNotificationImplementation (self, QString)
This method is also a Qt slot with the C++ signature bool unsubscribeFromNotificationImplementation(const QString&).
Qt Signal Documentation
void notification (const QString&)
This is the default overload of this signal.