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
Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals Struct Reference
+ Collaboration diagram for Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals:

Public Member Functions

 ~QtSqlGlobals ()
 
QSqlDatabase connection (const QString &key) const
 
bool connectionExists (const QString &key) const
 
QStringList connectionNames () const
 

Public Attributes

QReadWriteLock lock
 
QHash< QString, QSqlDriverCreatorBase * > registeredDrivers
 
QHash< QString, QSqlDatabaseconnections
 

Detailed Description

Definition at line 42 of file qsqldatabase.cpp.

Constructor & Destructor Documentation

◆ ~QtSqlGlobals()

QtSqlGlobals::~QtSqlGlobals ( )

Definition at line 123 of file qsqldatabase.cpp.

References QSqlDatabasePrivate::invalidateDb(), and qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ connection()

QSqlDatabase Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::connection ( const QString & key) const
inline

Definition at line 45 of file qsqldatabase.cpp.

References lock.

◆ connectionExists()

bool Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::connectionExists ( const QString & key) const
inline

Definition at line 50 of file qsqldatabase.cpp.

References lock.

◆ connectionNames()

QStringList Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::connectionNames ( ) const
inline

Definition at line 55 of file qsqldatabase.cpp.

References lock.

Member Data Documentation

◆ connections

QHash<QString, QSqlDatabase> Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::connections

Definition at line 62 of file qsqldatabase.cpp.

◆ lock

QReadWriteLock Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::lock
mutable

Definition at line 60 of file qsqldatabase.cpp.

◆ registeredDrivers

QHash<QString, QSqlDriverCreatorBase*> Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals::registeredDrivers

Definition at line 61 of file qsqldatabase.cpp.


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