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

(6bc454b24700a63a4b0ce7536dba6b6e7d1c2b45)

#include "qsqlquery.h"
#include "qatomic.h"
#include "qdebug.h"
#include "qloggingcategory.h"
#include "qsqlrecord.h"
#include "qsqlresult.h"
#include "qsqldriver.h"
#include "qsqldatabase.h"
#include "private/qsqlnulldriver_p.h"
#include "moc_qsqlquery.cpp"
+ Include dependency graph for qsqlquery.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcSqlQuery, "qt.sql.qsqlquery") class QSqlQueryPrivate
 
 Q_GLOBAL_STATIC_WITH_ARGS (QSqlNullResult, nullResult,(nullDriver())) QSqlQueryPrivate *QSqlQueryPrivate
 
static void qInit (QSqlQuery *q, const QString &query, const QSqlDatabase &db)
 

Function Documentation

◆ Q_GLOBAL_STATIC_WITH_ARGS()

Q_GLOBAL_STATIC_WITH_ARGS ( QSqlNullResult ,
nullResult ,
(nullDriver())  )

Definition at line 38 of file qsqlquery.cpp.

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcSqlQuery ,
"qt.sql.qsqlquery"  )
static

Definition at line 23 of file qsqlquery.cpp.

◆ qInit()

static void qInit ( QSqlQuery * q,
const QString & query,
const QSqlDatabase & db )
static

Definition at line 273 of file qsqlquery.cpp.

References QSqlDriver::createResult(), QSqlDatabase::database(), db, QSqlDatabase::defaultConnection, QSqlDatabase::driver(), and QSqlDatabase::isValid().

Referenced by QSqlQuery::QSqlQuery(), QSqlQuery::QSqlQuery(), and QTest::qExec().

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