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

(29115a74963f87ceab6a7c762a758be94a98441a)

#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
 

Enumerations

enum class  MimerColumnTypes {
  Binary , Clob , Blob , String ,
  Int , Numeric , Long , Float ,
  Double , Boolean , Uuid , Date ,
  Time , Timestamp , Unknown
}
 

Functions

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

Enumeration Type Documentation

◆ MimerColumnTypes

enum class MimerColumnTypes
strong
Enumerator
Binary 
Clob 
Blob 
String 
Int 
Numeric 
Long 
Float 
Double 
Boolean 
Uuid 
Date 
Time 
Timestamp 
Unknown 

Definition at line 36 of file qsql_mimer.cpp.

Function Documentation

◆ mimerMapColumnTypes()

static MimerColumnTypes mimerMapColumnTypes ( int32_t t)
static

Definition at line 207 of file qsql_mimer.cpp.

References Binary, Blob, Boolean, Clob, Date, Double, Float, Int, Long, MIMER_DEFAULT_DATATYPE, Numeric, qCWarning, String, Time, Timestamp, Unknown, and Uuid.

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:

◆ 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: