Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsql_mimer.cpp File Reference
#include <qcoreapplication.h>
#include <qvariant.h>
#include <qmetatype.h>
#include <qdatetime.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 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 , 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 23 of file qsql_mimer.cpp.

Enumeration Type Documentation

◆ MimerColumnTypes

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

Definition at line 33 of file qsql_mimer.cpp.

Function Documentation

◆ mimerMapColumnTypes()

static MimerColumnTypes mimerMapColumnTypes ( int32_t  t)
static

Definition at line 203 of file qsql_mimer.cpp.

References Binary, Blob, Boolean, Clob, Date, Double, Float, Int, Long, MIMER_DEFAULT_DATATYPE, qWarning, 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 160 of file qsql_mimer.cpp.

References QString::arg(), and 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 167 of file qsql_mimer.cpp.

References QString::arg(), and 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 277 of file qsql_mimer.cpp.

References MIMER_DEFAULT_DATATYPE, qWarning, 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 349 of file qsql_mimer.cpp.

References MIMER_DEFAULT_DATATYPE, and qWarning.

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 132 of file qsql_mimer.cpp.

References QString::arg(), QVarLengthArray< T, Prealloc >::data(), 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: