API reference - Class QSqlDatabaseNotation used in Ruby API documentation Description: Binding of QSqlDatabase
Public constructors
Public methods
Public static methods and constants
Deprecated methods (protected, public, static, non-static and constructors)
Detailed descriptionvoid _assign(const QSqlDatabase other)Description: Assigns another object to self void _createDescription: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. void _destroyDescription: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. [const] bool _destroyed?Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. [const] bool _is_const_object?Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. void _manageDescription: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. void _unmanageDescription: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. [static] QSqlDatabase addDatabase(string type,string connectionName = QLatin1String(QSqlDatabase::defaultConnection))Description: Static method QSqlDatabase QSqlDatabase::addDatabase(const QString &type, const QString &connectionName) This method is static and can be called without an instance. [static] QSqlDatabase addDatabase(QSqlDriver ptr driver,string connectionName = QLatin1String(QSqlDatabase::defaultConnection))Description: Static method QSqlDatabase QSqlDatabase::addDatabase(QSqlDriver *driver, const QString &connectionName) This method is static and can be called without an instance. QSqlDatabase assign(const QSqlDatabase other)Description: Method QSqlDatabase &QSqlDatabase::operator=(const QSqlDatabase &other) [static] QSqlDatabase cloneDatabase(const QSqlDatabase other,string connectionName)Description: Static method QSqlDatabase QSqlDatabase::cloneDatabase(const QSqlDatabase &other, const QString &connectionName) This method is static and can be called without an instance. void closeDescription: Method void QSqlDatabase::close() bool commitDescription: Method bool QSqlDatabase::commit() [const] string connectOptionsDescription: Method QString QSqlDatabase::connectOptions() Python specific notes:The object exposes a readable attribute 'connectOptions'. This is the getter. void connectOptions=(string options = QString())Description: Method void QSqlDatabase::setConnectOptions(const QString &options) Python specific notes:The object exposes a writable attribute 'connectOptions'. This is the setter. [const] string connectionNameDescription: Method QString QSqlDatabase::connectionName() [static] string[] connectionNamesDescription: Static method QStringList QSqlDatabase::connectionNames() This method is static and can be called without an instance. [static] bool contains(string connectionName = QLatin1String(QSqlDatabase::defaultConnection))Description: Static method bool QSqlDatabase::contains(const QString &connectionName) This method is static and can be called without an instance. void createDescription: Ensures the C++ object is created Use of this method is deprecated. Use _create instead [static] QSqlDatabase database(string connectionName = QLatin1String(QSqlDatabase::defaultConnection),bool open = true)Description: Static method QSqlDatabase QSqlDatabase::database(const QString &connectionName, bool open) This method is static and can be called without an instance. [const] string databaseNameDescription: Method QString QSqlDatabase::databaseName() Python specific notes:The object exposes a readable attribute 'databaseName'. This is the getter. void databaseName=(string name)Description: Method void QSqlDatabase::setDatabaseName(const QString &name) Python specific notes:The object exposes a writable attribute 'databaseName'. This is the setter. void destroyDescription: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead [const] bool destroyed?Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead [const] QSqlDriver ptr driverDescription: Method QSqlDriver *QSqlDatabase::driver() [const] string driverNameDescription: Method QString QSqlDatabase::driverName() [static] string[] driversDescription: Static method QStringList QSqlDatabase::drivers() This method is static and can be called without an instance. [const] new QSqlDatabase ptr dupDescription: Creates a copy of self [const] QSqlQuery exec(string query = QString())Description: Method QSqlQuery QSqlDatabase::exec(const QString &query) Python specific notes:This method is available as method 'exec_' in Python [const] string hostNameDescription: Method QString QSqlDatabase::hostName() Python specific notes:The object exposes a readable attribute 'hostName'. This is the getter. void hostName=(string host)Description: Method void QSqlDatabase::setHostName(const QString &host) Python specific notes:The object exposes a writable attribute 'hostName'. This is the setter. [static] bool isDriverAvailable?(string name)Description: Static method bool QSqlDatabase::isDriverAvailable(const QString &name) This method is static and can be called without an instance. [const] bool isOpen?Description: Method bool QSqlDatabase::isOpen() [const] bool isOpenError?Description: Method bool QSqlDatabase::isOpenError() [const] bool isValid?Description: Method bool QSqlDatabase::isValid() [const] bool is_const_object?Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead [const] QSqlError lastErrorDescription: Method QSqlError QSqlDatabase::lastError() [static] new QSqlDatabase newDescription: Constructor QSqlDatabase::QSqlDatabase() This method creates an object of class QSqlDatabase. Python specific notes:This method is the default initializer of the object [static] new QSqlDatabase new(const QSqlDatabase other)Description: Constructor QSqlDatabase::QSqlDatabase(const QSqlDatabase &other) This method creates an object of class QSqlDatabase. Python specific notes:This method is the default initializer of the object [const] QSql_NumericalPrecisionPolicy numericalPrecisionPolicyDescription: Method QSql::NumericalPrecisionPolicy QSqlDatabase::numericalPrecisionPolicy() Python specific notes:The object exposes a readable attribute 'numericalPrecisionPolicy'. This is the getter. void numericalPrecisionPolicy=(const QSql_NumericalPrecisionPolicy precisionPolicy)Description: Method void QSqlDatabase::setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy precisionPolicy) Python specific notes:The object exposes a writable attribute 'numericalPrecisionPolicy'. This is the setter. bool openDescription: Method bool QSqlDatabase::open() bool open(string user,string password)Description: Method bool QSqlDatabase::open(const QString &user, const QString &password) [const] string passwordDescription: Method QString QSqlDatabase::password() Python specific notes:The object exposes a readable attribute 'password'. This is the getter. void password=(string password)Description: Method void QSqlDatabase::setPassword(const QString &password) Python specific notes:The object exposes a writable attribute 'password'. This is the setter. [const] int portDescription: Method int QSqlDatabase::port() Python specific notes:The object exposes a readable attribute 'port'. This is the getter. void port=(int p)Description: Method void QSqlDatabase::setPort(int p) Python specific notes:The object exposes a writable attribute 'port'. This is the setter. [const] QSqlIndex primaryIndex(string tablename)Description: Method QSqlIndex QSqlDatabase::primaryIndex(const QString &tablename) [const] QSqlRecord record(string tablename)Description: Method QSqlRecord QSqlDatabase::record(const QString &tablename) [static] void registerSqlDriver(string name,QSqlDriverCreatorBase ptr creator)Description: Static method void QSqlDatabase::registerSqlDriver(const QString &name, QSqlDriverCreatorBase *creator) This method is static and can be called without an instance. [static] void removeDatabase(string connectionName)Description: Static method void QSqlDatabase::removeDatabase(const QString &connectionName) This method is static and can be called without an instance. bool rollbackDescription: Method bool QSqlDatabase::rollback() void setConnectOptions(string options = QString())Description: Method void QSqlDatabase::setConnectOptions(const QString &options) Python specific notes:The object exposes a writable attribute 'connectOptions'. This is the setter. void setDatabaseName(string name)Description: Method void QSqlDatabase::setDatabaseName(const QString &name) Python specific notes:The object exposes a writable attribute 'databaseName'. This is the setter. void setHostName(string host)Description: Method void QSqlDatabase::setHostName(const QString &host) Python specific notes:The object exposes a writable attribute 'hostName'. This is the setter. void setNumericalPrecisionPolicy(const QSql_NumericalPrecisionPolicy precisionPolicy)Description: Method void QSqlDatabase::setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy precisionPolicy) Python specific notes:The object exposes a writable attribute 'numericalPrecisionPolicy'. This is the setter. void setPassword(string password)Description: Method void QSqlDatabase::setPassword(const QString &password) Python specific notes:The object exposes a writable attribute 'password'. This is the setter. void setPort(int p)Description: Method void QSqlDatabase::setPort(int p) Python specific notes:The object exposes a writable attribute 'port'. This is the setter. void setUserName(string name)Description: Method void QSqlDatabase::setUserName(const QString &name) Python specific notes:The object exposes a writable attribute 'userName'. This is the setter. [const] string[] tables(const QSql_TableType type = QSql::Tables)Description: Method QStringList QSqlDatabase::tables(QSql::TableType type) bool transactionDescription: Method bool QSqlDatabase::transaction() [const] string userNameDescription: Method QString QSqlDatabase::userName() Python specific notes:The object exposes a readable attribute 'userName'. This is the getter. void userName=(string name)Description: Method void QSqlDatabase::setUserName(const QString &name) Python specific notes:The object exposes a writable attribute 'userName'. This is the setter. |