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

(c39fb9035c6e3a63f5705ad03803ef19aa5e6321)

#include <qcoreapplication.h>
#include <qvariant.h>
#include <qmetatype.h>
#include <qdatetime.h>
#include <qloggingcategory.h>
#include <qsqlerror.h>
#include <qsqlfield.h>
#include <qsqlindex.h>
#include <qsqlrecord.h>
#include <qsqlquery.h>
#include <qsocketnotifier.h>
#include <qstringlist.h>
#include <qlocale.h>
#include <QtSql/private/qsqlresult_p.h>
#include <QtSql/private/qsqldriver_p.h>
#include "qsql_mimer.h"
#include "moc_qsql_mimer.cpp"
+ Include dependency graph for qsql_mimer.cpp:

Go to the source code of this file.

Classes

class  QMimerSQLResult
 
class  QMimerSQLDriverPrivate
 
class  QMimerSQLResultPrivate
 

Macros

#define MIMER_DEFAULT_DATATYPE   1000
 

Functions

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcMimer, "qt.sql.mimer") enum class MimerColumnTypes
 
static QSqlError qMakeError (const QString &err, const int errCode, QSqlError::ErrorType type, const QMimerSQLDriverPrivate *p)
 
static QString msgCouldNotGet (const char *type, int column)
 
static QString msgCouldNotSet (const char *type, int column)
 
static MimerColumnTypes mimerMapColumnTypes (int32_t t)
 
static QMetaType::Type qDecodeMSQLType (int32_t t)
 
static int32_t qLookupMimDataType (QStringView s)
 

Macro Definition Documentation

◆ MIMER_DEFAULT_DATATYPE

#define MIMER_DEFAULT_DATATYPE   1000

Definition at line 24 of file qsql_mimer.cpp.

Referenced by mimerMapColumnTypes(), qDecodeMSQLType(), and qLookupMimDataType().

Function Documentation

◆ mimerMapColumnTypes()

static MimerColumnTypes mimerMapColumnTypes ( int32_t t)
static

Definition at line 207 of file qsql_mimer.cpp.

References MIMER_DEFAULT_DATATYPE, and qCWarning.

Referenced by QMimerSQLResult::data(), and QMimerSQLResult::exec().

+ Here is the caller graph for this function:

◆ msgCouldNotGet()

static QString msgCouldNotGet ( const char * type,
int column )
static

Definition at line 164 of file qsql_mimer.cpp.

References QCoreApplication::translate().

Referenced by QMimerSQLResult::data().

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

◆ msgCouldNotSet()

static QString msgCouldNotSet ( const char * type,
int column )
static

Definition at line 171 of file qsql_mimer.cpp.

References QCoreApplication::translate().

Referenced by QMimerSQLResult::exec().

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

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcMimer ,
"qt.sql.mimer"  )
static

Definition at line 34 of file qsql_mimer.cpp.

References Unknown, and Uuid.

◆ qDecodeMSQLType()

static QMetaType::Type qDecodeMSQLType ( int32_t t)
static

Definition at line 282 of file qsql_mimer.cpp.

References MIMER_DEFAULT_DATATYPE, qCWarning, and QMetaType::UnknownType.

Referenced by QMimerSQLResult::data(), QMimerSQLDriver::primaryIndex(), QMimerSQLResult::record(), and QMimerSQLDriver::record().

+ Here is the caller graph for this function:

◆ qLookupMimDataType()

static int32_t qLookupMimDataType ( QStringView s)
static

Definition at line 355 of file qsql_mimer.cpp.

References MIMER_DEFAULT_DATATYPE, and qCWarning.

Referenced by QMimerSQLDriver::primaryIndex(), and QMimerSQLDriver::record().

+ Here is the caller graph for this function:

◆ qMakeError()

static QSqlError qMakeError ( const QString & err,
const int errCode,
QSqlError::ErrorType type,
const QMimerSQLDriverPrivate * p )
static

Definition at line 136 of file qsql_mimer.cpp.

References QString::fromWCharArray(), QString::number(), and QCoreApplication::translate().

Referenced by QMimerSQLResult::data(), QMimerSQLResult::exec(), QMimerSQLResult::execBatch(), QMimerSQLResult::fetch(), QMimerSQLResult::fetchFirst(), QMimerSQLResult::fetchLast(), QMimerSQLResult::fetchNext(), QMimerSQLResult::isNull(), and QMimerSQLResult::prepare().

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