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
qsqldatabase.cpp File Reference

(b4c63b89dfe136d0579bf1b6422c4d878cdd74ab)

#include "qsqldatabase.h"
#include "qsqlquery.h"
#include "qloggingcategory.h"
#include "qcoreapplication.h"
#include "qreadwritelock.h"
#include "qsqldriver.h"
#include "qsqldriver_p.h"
#include "qsqldriverplugin.h"
#include "qsqlindex.h"
#include "QtCore/qapplicationstatic.h"
#include "private/qfactoryloader_p.h"
#include "private/qsqlnulldriver_p.h"
#include "qhash.h"
#include "qthread.h"
#include "moc_qsqldatabase.cpp"
+ Include dependency graph for qsqldatabase.cpp:

Go to the source code of this file.

Classes

struct  Q_GLOBAL_STATIC_WITH_ARGS::QtSqlGlobals
 
class  QSqlDatabasePrivate
 

Namespaces

namespace  Q_GLOBAL_STATIC_WITH_ARGS
 

Macros

#define CHECK_QCOREAPPLICATION
 
#define CHECK_QCOREAPPLICATION_RETVAL
 

Functions

QDebug operator<< (QDebug dbg, const QSqlDatabase &d)
 

Macro Definition Documentation

◆ CHECK_QCOREAPPLICATION

#define CHECK_QCOREAPPLICATION
Value:
qCWarning(lcSqlDb, "QSqlDatabase requires a QCoreApplication"); \
return; \
}
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
#define Q_UNLIKELY(x)

Definition at line 25 of file qsqldatabase.cpp.

Referenced by QSqlDatabasePrivate::addDatabase(), QSqlDatabasePrivate::init(), QSqlDatabase::registerSqlDriver(), and QSqlDatabasePrivate::removeDatabase().

◆ CHECK_QCOREAPPLICATION_RETVAL

#define CHECK_QCOREAPPLICATION_RETVAL
Value:
qCWarning(lcSqlDb, "QSqlDatabase requires a QCoreApplication"); \
return {}; \
}

Definition at line 30 of file qsqldatabase.cpp.

Referenced by QSqlDatabase::cloneDatabase(), QSqlDatabase::connectionNames(), QSqlDatabase::contains(), QSqlDatabasePrivate::database(), and QSqlDatabase::drivers().

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const QSqlDatabase & d )

Definition at line 1387 of file qsqldatabase.cpp.

References d.