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
QPSQLDriverPrivate Class Referencefinal
+ Inheritance diagram for QPSQLDriverPrivate:
+ Collaboration diagram for QPSQLDriverPrivate:

Public Member Functions

 QPSQLDriverPrivate ()
 
void appendTables (QStringList &tl, QSqlQuery &t, QChar type)
 
PGresultexec (const char *stmt)
 
PGresultexec (const QString &stmt)
 
StatementId sendQuery (const QString &stmt)
 
bool setSingleRowMode () const
 
PGresultgetResult (StatementId stmtId) const
 
void finishQuery (StatementId stmtId)
 
void discardResults () const
 
StatementId generateStatementId ()
 
void checkPendingNotifications () const
 
QPSQLDriver::Protocol getPSQLVersion ()
 
bool setEncodingUtf8 ()
 
void setDatestyle ()
 
void setByteaOutput ()
 
void setUtcTimeZone ()
 
void detectBackslashEscape ()
 
- 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)
 
QObjectList receiverList (const char *signal) 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
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QStringList seid
 
PGconnconnection = nullptr
 
QSocketNotifiersn = nullptr
 
QPSQLDriver::Protocol pro = QPSQLDriver::Version6
 
StatementId currentStmtId = InvalidStatementId
 
StatementId stmtCount = InvalidStatementId
 
bool pendingNotifyCheck = false
 
bool hasBackslashEscape = false
 
QHash< int, QStringoidToTable
 
- 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 receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- 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 117 of file qsql_psql.cpp.

Constructor & Destructor Documentation

◆ QPSQLDriverPrivate()

QPSQLDriverPrivate::QPSQLDriverPrivate ( )
inline

Definition at line 121 of file qsql_psql.cpp.

Member Function Documentation

◆ appendTables()

void QPSQLDriverPrivate::appendTables ( QStringList & tl,
QSqlQuery & t,
QChar type )

Definition at line 151 of file qsql_psql.cpp.

References QStringLiteral.

◆ checkPendingNotifications()

void QPSQLDriverPrivate::checkPendingNotifications ( ) const

Definition at line 245 of file qsql_psql.cpp.

References QMetaObject::invokeMethod(), pendingNotifyCheck, Qt::QueuedConnection, and seid.

Referenced by exec(), and getResult().

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

◆ detectBackslashEscape()

void QPSQLDriverPrivate::detectBackslashEscape ( )

Definition at line 946 of file qsql_psql.cpp.

References exec(), QString::fromLatin1(), hasBackslashEscape, pro, QStringLiteral, and QPSQLDriver::Version8_2.

+ Here is the call graph for this function:

◆ discardResults()

void QPSQLDriverPrivate::discardResults ( ) const

Definition at line 231 of file qsql_psql.cpp.

References connection.

Referenced by finishQuery(), and sendQuery().

+ Here is the caller graph for this function:

◆ exec() [1/2]

PGresult * QPSQLDriverPrivate::exec ( const char * stmt)

Definition at line 170 of file qsql_psql.cpp.

References checkPendingNotifications(), connection, currentStmtId, generateStatementId(), and InvalidStatementId.

Referenced by QPSQLDriver::tables().

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

◆ exec() [2/2]

PGresult * QPSQLDriverPrivate::exec ( const QString & stmt)

Definition at line 179 of file qsql_psql.cpp.

References QByteArray::constData(), exec(), and QString::toUtf8().

+ Here is the call graph for this function:

◆ finishQuery()

void QPSQLDriverPrivate::finishQuery ( StatementId stmtId)

Definition at line 223 of file qsql_psql.cpp.

References currentStmtId, discardResults(), and InvalidStatementId.

+ Here is the call graph for this function:

◆ generateStatementId()

StatementId QPSQLDriverPrivate::generateStatementId ( )

Definition at line 237 of file qsql_psql.cpp.

References stmtCount.

Referenced by exec(), and sendQuery().

+ Here is the caller graph for this function:

◆ getPSQLVersion()

QPSQLDriver::Protocol QPSQLDriverPrivate::getPSQLVersion ( )

Definition at line 1056 of file qsql_psql.cpp.

References exec(), QString::fromLatin1(), qCWarning, qFindPSQLVersion(), QPSQLDriver::Version6, QPSQLDriver::Version7_3, and QPSQLDriver::VersionUnknown.

+ Here is the call graph for this function:

◆ getResult()

PGresult * QPSQLDriverPrivate::getResult ( StatementId stmtId) const

Definition at line 206 of file qsql_psql.cpp.

References checkPendingNotifications(), connection, currentStmtId, and qCWarning.

+ Here is the call graph for this function:

◆ sendQuery()

StatementId QPSQLDriverPrivate::sendQuery ( const QString & stmt)

Definition at line 184 of file qsql_psql.cpp.

References connection, QByteArray::constData(), currentStmtId, discardResults(), generateStatementId(), InvalidStatementId, and QString::toUtf8().

+ Here is the call graph for this function:

◆ setByteaOutput()

void QPSQLDriverPrivate::setByteaOutput ( )

Definition at line 923 of file qsql_psql.cpp.

References connection, exec(), QString::fromUtf8(), pro, qCWarning, and QPSQLDriver::Version9.

+ Here is the call graph for this function:

◆ setDatestyle()

void QPSQLDriverPrivate::setDatestyle ( )

Definition at line 914 of file qsql_psql.cpp.

References connection, exec(), QString::fromUtf8(), and qCWarning.

+ Here is the call graph for this function:

◆ setEncodingUtf8()

bool QPSQLDriverPrivate::setEncodingUtf8 ( )

Definition at line 906 of file qsql_psql.cpp.

References exec().

+ Here is the call graph for this function:

◆ setSingleRowMode()

bool QPSQLDriverPrivate::setSingleRowMode ( ) const

Definition at line 194 of file qsql_psql.cpp.

References connection.

◆ setUtcTimeZone()

void QPSQLDriverPrivate::setUtcTimeZone ( )

Definition at line 937 of file qsql_psql.cpp.

References connection, exec(), QString::fromUtf8(), and qCWarning.

+ Here is the call graph for this function:

Member Data Documentation

◆ connection

PGconn* QPSQLDriverPrivate::connection = nullptr

◆ currentStmtId

StatementId QPSQLDriverPrivate::currentStmtId = InvalidStatementId

Definition at line 127 of file qsql_psql.cpp.

Referenced by exec(), finishQuery(), getResult(), and sendQuery().

◆ hasBackslashEscape

bool QPSQLDriverPrivate::hasBackslashEscape = false

Definition at line 130 of file qsql_psql.cpp.

Referenced by detectBackslashEscape().

◆ oidToTable

QHash<int, QString> QPSQLDriverPrivate::oidToTable
mutable

Definition at line 148 of file qsql_psql.cpp.

◆ pendingNotifyCheck

bool QPSQLDriverPrivate::pendingNotifyCheck = false
mutable

Definition at line 129 of file qsql_psql.cpp.

Referenced by checkPendingNotifications().

◆ pro

QPSQLDriver::Protocol QPSQLDriverPrivate::pro = QPSQLDriver::Version6

Definition at line 126 of file qsql_psql.cpp.

Referenced by detectBackslashEscape(), and setByteaOutput().

◆ seid

QStringList QPSQLDriverPrivate::seid

Definition at line 123 of file qsql_psql.cpp.

Referenced by checkPendingNotifications().

◆ sn

QSocketNotifier* QPSQLDriverPrivate::sn = nullptr

Definition at line 125 of file qsql_psql.cpp.

◆ stmtCount

StatementId QPSQLDriverPrivate::stmtCount = InvalidStatementId

Definition at line 128 of file qsql_psql.cpp.

Referenced by generateStatementId().


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