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>.
Loading...
Searching...
No Matches
QSqlDatabasePrivate Class Reference
+ Collaboration diagram for QSqlDatabasePrivate:

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 QSqlDatabasePrivateshared_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
 
QSqlDriverdriver
 
QString dbname
 
QString uname
 
QString pword
 
QString hname
 
QString drvName
 
int port
 
QString connOptions
 
QString connName
 
QSql::NumericalPrecisionPolicy precisionPolicy
 

Detailed Description

Definition at line 67 of file qsqldatabase.cpp.

Constructor & Destructor Documentation

◆ QSqlDatabasePrivate() [1/2]

QSqlDatabasePrivate::QSqlDatabasePrivate ( QSqlDriver * dr)
inline

Definition at line 70 of file qsqldatabase.cpp.

References QSql::LowPrecisionDouble.

◆ QSqlDatabasePrivate() [2/2]

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.

+ Here is the call graph for this function:

◆ ~QSqlDatabasePrivate()

QSqlDatabasePrivate::~QSqlDatabasePrivate ( )

Definition at line 117 of file qsqldatabase.cpp.

References driver, and shared_null().

+ Here is the call graph for this function:

Member Function Documentation

◆ addDatabase()

void QSqlDatabasePrivate::addDatabase ( const QSqlDatabase & db,
const QString & name )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ copy()

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.

+ Here is the call graph for this function:

◆ database()

QSqlDatabase QSqlDatabasePrivate::database ( const QString & name,
bool open )
static

Definition at line 176 of file qsqldatabase.cpp.

References CHECK_QCOREAPPLICATION_RETVAL, QThread::currentThread(), db, open(), and qCWarning.

Referenced by QSqlDatabase::database().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ disable()

void QSqlDatabasePrivate::disable ( )

Definition at line 213 of file qsqldatabase.cpp.

References driver, and shared_null().

+ Here is the call graph for this function:

◆ init()

void QSqlDatabasePrivate::init ( const QString & type)

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ invalidateDb()

void QSqlDatabasePrivate::invalidateDb ( const QSqlDatabase & db,
const QString & name,
bool doWarn = true )
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().

+ Here is the caller graph for this function:

◆ removeDatabase()

void QSqlDatabasePrivate::removeDatabase ( const QString & name)
static

Definition at line 147 of file qsqldatabase.cpp.

References CHECK_QCOREAPPLICATION, and invalidateDb().

Referenced by QSqlDatabase::removeDatabase().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shared_null()

QSqlDatabasePrivate * QSqlDatabasePrivate::shared_null ( )
static

Definition at line 130 of file qsqldatabase.cpp.

Referenced by ~QSqlDatabasePrivate(), disable(), init(), QSqlDatabase::isValid(), and QSqlDatabase::moveToThread().

+ Here is the caller graph for this function:

Member Data Documentation

◆ connName

QString QSqlDatabasePrivate::connName

Definition at line 92 of file qsqldatabase.cpp.

Referenced by QSqlDatabase::connectionName(), and QSqlDatabase::moveToThread().

◆ connOptions

◆ dbname

◆ driver

◆ drvName

QString QSqlDatabasePrivate::drvName

Definition at line 89 of file qsqldatabase.cpp.

Referenced by QSqlDatabasePrivate(), copy(), QSqlDatabase::driverName(), and init().

◆ hname

◆ port

int QSqlDatabasePrivate::port

◆ precisionPolicy

◆ pword

QString QSqlDatabasePrivate::pword

◆ ref

◆ uname

QString QSqlDatabasePrivate::uname

The documentation for this class was generated from the following file: