Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QODBCDriverPrivate Class Reference
+ Inheritance diagram for QODBCDriverPrivate:
+ Collaboration diagram for QODBCDriverPrivate:

Public Types

enum  DefaultCase { Lower , Mixed , Upper , Sensitive }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Public Member Functions

bool checkDriver () const
 
void checkUnicode ()
 
void checkDBMS ()
 
void checkHasSQLFetchScroll ()
 
void checkHasMultiResults ()
 
void checkSchemaUsage ()
 
void checkDateTimePrecision ()
 
bool setConnectionOptions (const QString &connOpts)
 
void splitTableQualifier (const QString &qualifier, QString &catalog, QString &schema, QString &table) const
 
DefaultCase defaultCase () const
 
QString adjustCase (const QString &) const
 
QChar quoteChar ()
 
 QSqlDriverPrivate (QSqlDriver::DbmsType type=QSqlDriver::UnknownDbms)
 
- Public Member Functions inherited from QSqlDriverPrivate
 QSqlDriverPrivate (QSqlDriver::DbmsType type=QSqlDriver::UnknownDbms)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

SQLHANDLE hEnv = nullptr
 
SQLHANDLE hDbc = nullptr
 
int disconnectCount = 0
 
int datetimePrecision = 19
 
bool unicode = false
 
bool useSchema = false
 
bool isFreeTDSDriver = false
 
bool hasSQLFetchScroll = true
 
bool hasMultiResultSets = false
 
- Public Attributes inherited from QSqlDriverPrivate
QSqlError error
 
QSql::NumericalPrecisionPolicy precisionPolicy = QSql::LowPrecisionDouble
 
QSqlDriver::DbmsType dbmsType
 
bool isOpen = false
 
bool isOpenError = false
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Detailed Description

Definition at line 86 of file qsql_odbc.cpp.

Member Enumeration Documentation

◆ DefaultCase

Enumerator
Lower 
Mixed 
Upper 
Sensitive 

Definition at line 91 of file qsql_odbc.cpp.

Member Function Documentation

◆ adjustCase()

QString QODBCDriverPrivate::adjustCase ( const QString identifier) const

Definition at line 862 of file qsql_odbc.cpp.

References defaultCase(), Lower, Mixed, ret, Sensitive, QString::toLower(), QString::toUpper(), and Upper.

+ Here is the call graph for this function:

◆ checkDateTimePrecision()

void QODBCDriverPrivate::checkDateTimePrecision ( )

Definition at line 2205 of file qsql_odbc.cpp.

References datetimePrecision, and hDbc.

◆ checkDBMS()

void QODBCDriverPrivate::checkDBMS ( )

Definition at line 2146 of file qsql_odbc.cpp.

References Qt::CaseInsensitive, QString::contains(), QVarLengthArray< T, Prealloc >::data(), QSqlDriverPrivate::dbmsType, fromSQLTCHAR(), hDbc, isFreeTDSDriver, QSqlDriver::MSSqlServer, QSqlDriver::MySqlServer, QSqlDriver::Oracle, QSqlDriver::PostgreSQL, QVLABaseBase::size(), QSqlDriver::Sybase, and unicode.

+ Here is the call graph for this function:

◆ checkDriver()

bool QODBCDriverPrivate::checkDriver ( ) const

Definition at line 2078 of file qsql_odbc.cpp.

References hDbc, qSqlWarning(), and qWarning.

+ Here is the call graph for this function:

◆ checkHasMultiResults()

void QODBCDriverPrivate::checkHasMultiResults ( )

Definition at line 2192 of file qsql_odbc.cpp.

References QVarLengthArray< T, Prealloc >::data(), fromSQLTCHAR(), hasMultiResultSets, hDbc, QVLABaseBase::size(), and QString::startsWith().

+ Here is the call graph for this function:

◆ checkHasSQLFetchScroll()

void QODBCDriverPrivate::checkHasSQLFetchScroll ( )

Definition at line 2182 of file qsql_odbc.cpp.

References hasSQLFetchScroll, hDbc, and qWarning.

◆ checkSchemaUsage()

void QODBCDriverPrivate::checkSchemaUsage ( )

Definition at line 2132 of file qsql_odbc.cpp.

References hDbc, and useSchema.

◆ checkUnicode()

void QODBCDriverPrivate::checkUnicode ( )

Definition at line 2012 of file qsql_odbc.cpp.

References QByteArray::data(), encoded, fromSQLTCHAR(), hDbc, QByteArray::size(), toSQLTCHAR(), and unicode.

+ Here is the call graph for this function:

◆ defaultCase()

QODBCDriverPrivate::DefaultCase QODBCDriverPrivate::defaultCase ( ) const

Definition at line 827 of file qsql_odbc.cpp.

References hDbc, Lower, Mixed, ret, Sensitive, and Upper.

Referenced by adjustCase().

+ Here is the caller graph for this function:

◆ QSqlDriverPrivate()

QSqlDriverPrivate::QSqlDriverPrivate ( QSqlDriver::DbmsType  type = QSqlDriver::UnknownDbms)
inline

Definition at line 30 of file qsqldriver_p.h.

◆ quoteChar()

QChar QODBCDriverPrivate::quoteChar ( )

Definition at line 672 of file qsql_odbc.cpp.

References hDbc.

◆ setConnectionOptions()

bool QODBCDriverPrivate::setConnectionOptions ( const QString connOpts)

Definition at line 700 of file qsql_odbc.cpp.

References arg, QString::fromLatin1(), hDbc, i, QString::indexOf(), QString::left(), QString::mid(), opt, qSqlWarning(), qt_string_SQLSetConnectAttr(), qWarning, QString::simplified(), Qt::SkipEmptyParts, and QString::split().

+ Here is the call graph for this function:

◆ splitTableQualifier()

void QODBCDriverPrivate::splitTableQualifier ( const QString qualifier,
QString catalog,
QString schema,
QString table 
) const

Definition at line 799 of file qsql_odbc.cpp.

References arg, QList< T >::at(), QList< T >::count(), QString::fromLatin1(), qSqlWarning(), QStringView::split(), and useSchema.

+ Here is the call graph for this function:

Member Data Documentation

◆ datetimePrecision

int QODBCDriverPrivate::datetimePrecision = 19

Definition at line 98 of file qsql_odbc.cpp.

Referenced by checkDateTimePrecision().

◆ disconnectCount

int QODBCDriverPrivate::disconnectCount = 0

Definition at line 97 of file qsql_odbc.cpp.

◆ hasMultiResultSets

bool QODBCDriverPrivate::hasMultiResultSets = false

Definition at line 103 of file qsql_odbc.cpp.

Referenced by checkHasMultiResults().

◆ hasSQLFetchScroll

bool QODBCDriverPrivate::hasSQLFetchScroll = true

Definition at line 102 of file qsql_odbc.cpp.

Referenced by checkHasSQLFetchScroll().

◆ hDbc

◆ hEnv

SQLHANDLE QODBCDriverPrivate::hEnv = nullptr

Definition at line 94 of file qsql_odbc.cpp.

Referenced by qODBCWarn().

◆ isFreeTDSDriver

bool QODBCDriverPrivate::isFreeTDSDriver = false

Definition at line 101 of file qsql_odbc.cpp.

Referenced by checkDBMS().

◆ unicode

bool QODBCDriverPrivate::unicode = false

Definition at line 99 of file qsql_odbc.cpp.

Referenced by checkDBMS(), and checkUnicode().

◆ useSchema

bool QODBCDriverPrivate::useSchema = false

Definition at line 100 of file qsql_odbc.cpp.

Referenced by checkSchemaUsage(), and splitTableQualifier().


The documentation for this class was generated from the following file: