Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 ()
 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 ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
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
const 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
QString connectionName
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 122 of file qsql_psql.cpp.

Constructor & Destructor Documentation

◆ QPSQLDriverPrivate() [1/2]

QPSQLDriverPrivate::QPSQLDriverPrivate ( )
inline

Definition at line 126 of file qsql_psql.cpp.

References seid.

◆ QPSQLDriverPrivate() [2/2]

QPSQLDriverPrivate::QPSQLDriverPrivate ( )
inline

Definition at line 126 of file qsql_psql.cpp.

Member Function Documentation

◆ appendTables() [1/2]

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

Definition at line 156 of file qsql_psql.cpp.

◆ appendTables() [2/2]

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

◆ checkPendingNotifications() [1/2]

void QPSQLDriverPrivate::checkPendingNotifications ( ) const

Definition at line 250 of file qsql_psql.cpp.

References pendingNotifyCheck.

Referenced by exec(), and getResult().

Here is the caller graph for this function:

◆ checkPendingNotifications() [2/2]

void QPSQLDriverPrivate::checkPendingNotifications ( ) const

◆ detectBackslashEscape() [1/2]

void QPSQLDriverPrivate::detectBackslashEscape ( )

Definition at line 973 of file qsql_psql.cpp.

References exec(), and hasBackslashEscape.

Here is the call graph for this function:

◆ detectBackslashEscape() [2/2]

void QPSQLDriverPrivate::detectBackslashEscape ( )

◆ discardResults() [1/2]

void QPSQLDriverPrivate::discardResults ( ) const

Definition at line 236 of file qsql_psql.cpp.

References connection.

Referenced by finishQuery(), and sendQuery().

Here is the caller graph for this function:

◆ discardResults() [2/2]

void QPSQLDriverPrivate::discardResults ( ) const

◆ exec() [1/4]

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

Definition at line 175 of file qsql_psql.cpp.

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

Referenced by detectBackslashEscape(), exec(), getPSQLVersion(), setByteaOutput(), setDatestyle(), setEncodingUtf8(), and setUtcTimeZone().

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

◆ exec() [2/4]

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

◆ exec() [3/4]

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

Definition at line 184 of file qsql_psql.cpp.

References exec().

Here is the call graph for this function:

◆ exec() [4/4]

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

◆ finishQuery() [1/2]

void QPSQLDriverPrivate::finishQuery ( StatementId stmtId)

Definition at line 228 of file qsql_psql.cpp.

References currentStmtId, discardResults(), and InvalidStatementId.

Here is the call graph for this function:

◆ finishQuery() [2/2]

void QPSQLDriverPrivate::finishQuery ( StatementId stmtId)

◆ generateStatementId() [1/2]

StatementId QPSQLDriverPrivate::generateStatementId ( )

Definition at line 242 of file qsql_psql.cpp.

References stmtCount.

Referenced by exec(), and sendQuery().

Here is the caller graph for this function:

◆ generateStatementId() [2/2]

StatementId QPSQLDriverPrivate::generateStatementId ( )

◆ getPSQLVersion() [1/2]

QPSQLDriver::Protocol QPSQLDriverPrivate::getPSQLVersion ( )

Definition at line 1083 of file qsql_psql.cpp.

References exec().

Here is the call graph for this function:

◆ getPSQLVersion() [2/2]

QPSQLDriver::Protocol QPSQLDriverPrivate::getPSQLVersion ( )

◆ getResult() [1/2]

PGresult * QPSQLDriverPrivate::getResult ( StatementId stmtId) const

Definition at line 211 of file qsql_psql.cpp.

References checkPendingNotifications(), connection, and currentStmtId.

Here is the call graph for this function:

◆ getResult() [2/2]

PGresult * QPSQLDriverPrivate::getResult ( StatementId stmtId) const

◆ sendQuery() [1/2]

StatementId QPSQLDriverPrivate::sendQuery ( const QString & stmt)

Definition at line 189 of file qsql_psql.cpp.

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

Here is the call graph for this function:

◆ sendQuery() [2/2]

StatementId QPSQLDriverPrivate::sendQuery ( const QString & stmt)

◆ setByteaOutput() [1/2]

void QPSQLDriverPrivate::setByteaOutput ( )

Definition at line 950 of file qsql_psql.cpp.

References exec().

Here is the call graph for this function:

◆ setByteaOutput() [2/2]

void QPSQLDriverPrivate::setByteaOutput ( )

◆ setDatestyle() [1/2]

void QPSQLDriverPrivate::setDatestyle ( )

Definition at line 941 of file qsql_psql.cpp.

References exec().

Here is the call graph for this function:

◆ setDatestyle() [2/2]

void QPSQLDriverPrivate::setDatestyle ( )

◆ setEncodingUtf8() [1/2]

bool QPSQLDriverPrivate::setEncodingUtf8 ( )

Definition at line 933 of file qsql_psql.cpp.

References exec().

Here is the call graph for this function:

◆ setEncodingUtf8() [2/2]

bool QPSQLDriverPrivate::setEncodingUtf8 ( )

◆ setSingleRowMode() [1/2]

bool QPSQLDriverPrivate::setSingleRowMode ( ) const

Definition at line 199 of file qsql_psql.cpp.

◆ setSingleRowMode() [2/2]

bool QPSQLDriverPrivate::setSingleRowMode ( ) const

◆ setUtcTimeZone() [1/2]

void QPSQLDriverPrivate::setUtcTimeZone ( )

Definition at line 964 of file qsql_psql.cpp.

References exec().

Here is the call graph for this function:

◆ setUtcTimeZone() [2/2]

void QPSQLDriverPrivate::setUtcTimeZone ( )

Member Data Documentation

◆ connection

PGconn * QPSQLDriverPrivate::connection = nullptr

Definition at line 129 of file qsql_psql.cpp.

Referenced by discardResults(), exec(), getResult(), qMakeError(), and sendQuery().

◆ currentStmtId

StatementId QPSQLDriverPrivate::currentStmtId = InvalidStatementId

Definition at line 132 of file qsql_psql.cpp.

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

◆ hasBackslashEscape

bool QPSQLDriverPrivate::hasBackslashEscape = false

Definition at line 135 of file qsql_psql.cpp.

Referenced by detectBackslashEscape().

◆ oidToTable

QHash< int, QString > QPSQLDriverPrivate::oidToTable
mutable

Definition at line 153 of file qsql_psql.cpp.

◆ pendingNotifyCheck

bool QPSQLDriverPrivate::pendingNotifyCheck = false
mutable

Definition at line 134 of file qsql_psql.cpp.

Referenced by checkPendingNotifications().

◆ pro

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

Definition at line 131 of file qsql_psql.cpp.

◆ seid

QStringList QPSQLDriverPrivate::seid

Definition at line 128 of file qsql_psql.cpp.

Referenced by QPSQLDriverPrivate().

◆ sn

QSocketNotifier * QPSQLDriverPrivate::sn = nullptr

Definition at line 130 of file qsql_psql.cpp.

◆ stmtCount

StatementId QPSQLDriverPrivate::stmtCount = InvalidStatementId

Definition at line 133 of file qsql_psql.cpp.

Referenced by generateStatementId().


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