Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Public Member Functions | |
QSqlDatabasePrivate (QSqlDriver *dr) | |
QSqlDatabasePrivate (const QSqlDatabasePrivate &other) | |
~QSqlDatabasePrivate () | |
void | init (const QString &type) |
void | copy (const QSqlDatabasePrivate *other) |
void | disable () |
Static Public Member Functions | |
static QSqlDatabasePrivate * | shared_null () |
static QSqlDatabase | database (const QString &name, bool open) |
static void | addDatabase (const QSqlDatabase &db, const QString &name) |
static void | removeDatabase (const QString &name) |
static void | invalidateDb (const QSqlDatabase &db, const QString &name, bool doWarn=true) |
Public Attributes | |
QAtomicInt | ref |
QSqlDriver * | driver |
QString | dbname |
QString | uname |
QString | pword |
QString | hname |
QString | drvName |
int | port |
QString | connOptions |
QString | connName |
QSql::NumericalPrecisionPolicy | precisionPolicy |
Definition at line 67 of file qsqldatabase.cpp.
|
inline |
Definition at line 70 of file qsqldatabase.cpp.
References QSql::LowPrecisionDouble.
QSqlDatabasePrivate::QSqlDatabasePrivate | ( | const QSqlDatabasePrivate & | other | ) |
Definition at line 102 of file qsqldatabase.cpp.
References connOptions, dbname, driver, drvName, hname, other(), precisionPolicy, pword, QSqlDriver::setNumericalPrecisionPolicy(), and uname.
QSqlDatabasePrivate::~QSqlDatabasePrivate | ( | ) |
Definition at line 117 of file qsqldatabase.cpp.
References driver, and shared_null().
|
static |
Definition at line 159 of file qsqldatabase.cpp.
References CHECK_QCOREAPPLICATION, db, invalidateDb(), qCWarning, and qUtf16Printable.
Referenced by QSqlDatabase::addDatabase(), QSqlDatabase::addDatabase(), and QSqlDatabase::cloneDatabase().
void QSqlDatabasePrivate::copy | ( | const QSqlDatabasePrivate * | other | ) |
Copies the connection data from other.
Definition at line 199 of file qsqldatabase.cpp.
References connOptions, dbname, driver, drvName, hname, other(), precisionPolicy, pword, QSqlDriver::setNumericalPrecisionPolicy(), and uname.
|
static |
Definition at line 176 of file qsqldatabase.cpp.
References CHECK_QCOREAPPLICATION_RETVAL, QThread::currentThread(), db, open(), and qCWarning.
Referenced by QSqlDatabase::database().
void QSqlDatabasePrivate::disable | ( | ) |
Definition at line 213 of file qsqldatabase.cpp.
References driver, and shared_null().
Create the actual driver instance type.
Definition at line 638 of file qsqldatabase.cpp.
References CHECK_QCOREAPPLICATION, driver, QSqlDatabase::drivers(), drvName, QSet< T >::end(), QSet< T >::find(), QCoreApplication::instance(), it, qCWarning, qUtf16Printable, and shared_null().
Referenced by QSqlDatabase::QSqlDatabase().
|
static |
Definition at line 137 of file qsqldatabase.cpp.
References db, qCWarning, and qUtf16Printable.
Referenced by Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::~QtSqlGlobals(), addDatabase(), and removeDatabase().
Definition at line 147 of file qsqldatabase.cpp.
References CHECK_QCOREAPPLICATION, and invalidateDb().
Referenced by QSqlDatabase::removeDatabase().
|
static |
Definition at line 130 of file qsqldatabase.cpp.
Referenced by ~QSqlDatabasePrivate(), disable(), init(), QSqlDatabase::isValid(), and QSqlDatabase::moveToThread().
QString QSqlDatabasePrivate::connName |
Definition at line 92 of file qsqldatabase.cpp.
Referenced by QSqlDatabase::connectionName(), and QSqlDatabase::moveToThread().
QString QSqlDatabasePrivate::connOptions |
Definition at line 91 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), QSqlDatabase::connectOptions(), copy(), QSqlDatabase::open(), QSqlDatabase::open(), and QSqlDatabase::setConnectOptions().
QString QSqlDatabasePrivate::dbname |
Definition at line 85 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::databaseName(), QSqlDatabase::open(), QSqlDatabase::open(), and QSqlDatabase::setDatabaseName().
QSqlDriver* QSqlDatabasePrivate::driver |
Definition at line 84 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), ~QSqlDatabasePrivate(), QSqlDatabase::close(), QSqlDatabase::commit(), copy(), disable(), QSqlDatabase::driver(), init(), QSqlDatabase::isOpen(), QSqlDatabase::isOpenError(), QSqlDatabase::isValid(), QSqlDatabase::lastError(), QSqlDatabase::open(), QSqlDatabase::open(), QSqlDatabase::primaryIndex(), QSqlDatabase::record(), QSqlDatabase::rollback(), QSqlDatabase::tables(), and QSqlDatabase::transaction().
QString QSqlDatabasePrivate::drvName |
Definition at line 89 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::driverName(), and init().
QString QSqlDatabasePrivate::hname |
Definition at line 88 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::hostName(), QSqlDatabase::open(), QSqlDatabase::open(), and QSqlDatabase::setHostName().
int QSqlDatabasePrivate::port |
Definition at line 90 of file qsqldatabase.cpp.
Referenced by QSqlDatabase::open(), QSqlDatabase::open(), QSqlDatabase::port(), and QSqlDatabase::setPort().
QSql::NumericalPrecisionPolicy QSqlDatabasePrivate::precisionPolicy |
Definition at line 93 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::numericalPrecisionPolicy(), and QSqlDatabase::setNumericalPrecisionPolicy().
QString QSqlDatabasePrivate::pword |
Definition at line 87 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::open(), QSqlDatabase::password(), and QSqlDatabase::setPassword().
QAtomicInt QSqlDatabasePrivate::ref |
Definition at line 83 of file qsqldatabase.cpp.
Referenced by QSqlDatabase::QSqlDatabase(), QSqlDatabase::QSqlDatabase(), QSqlDatabase::~QSqlDatabase(), and QSqlDatabase::moveToThread().
QString QSqlDatabasePrivate::uname |
Definition at line 86 of file qsqldatabase.cpp.
Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::open(), QSqlDatabase::setUserName(), and QSqlDatabase::userName().