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

Public Member Functions

QString fieldSerial (qsizetype i) const override
 
void deallocatePreparedStmt ()
 
bool processResults ()
 
 QSqlResultPrivate (QSqlResult *q, const QSqlDriver *drv)
 
- Public Member Functions inherited from QSqlResultPrivate
 QSqlResultPrivate (QSqlResult *q, const QSqlDriver *drv)
 
virtual ~QSqlResultPrivate ()=default
 
void clearValues ()
 
void resetBindCount ()
 
void clearIndex ()
 
void clear ()
 
QString positionalToNamedBinding (const QString &query) const
 
QString namedToPositionalBinding (const QString &query)
 
QString holderAt (int index) const
 

Public Attributes

std::queue< PGresult * > nextResultSets
 
QString preparedStmtId
 
PGresultresult = nullptr
 
StatementId stmtId = InvalidStatementId
 
int currentSize = -1
 
bool canFetchMoreRows = false
 
bool preparedQueriesEnabled = false
 
- Public Attributes inherited from QSqlResultPrivate
QSqlResultq_ptr = nullptr
 
QPointer< QSqlDriversqldriver
 
QString sql
 
QSqlError error
 
QString executedQuery
 
QHash< int, QSql::ParamType > types
 
QList< QVariantvalues
 
IndexMap indexes
 
QHolderVector holders
 
QSqlResult::BindingSyntax binds = QSqlResult::PositionalBinding
 
QSql::NumericalPrecisionPolicy precisionPolicy = QSql::LowPrecisionDouble
 
int idx = QSql::BeforeFirstRow
 
int bindCount = 0
 
bool active = false
 
bool isSel = false
 
bool forwardOnly = false
 
bool positionalBindingEnabled = true
 

Additional Inherited Members

- Public Types inherited from QSqlResultPrivate
using IndexMap = QHash<QString, QList<int>>
 
using QHolderVector = QList<QHolder>
 
- Static Public Member Functions inherited from QSqlResultPrivate
static bool isVariantNull (const QVariant &variant)
 

Detailed Description

Definition at line 254 of file qsql_psql.cpp.

Member Function Documentation

◆ deallocatePreparedStmt()

void QPSQLResultPrivate::deallocatePreparedStmt ( )

Definition at line 381 of file qsql_psql.cpp.

References QString::clear(), connection, QString::fromUtf8(), preparedStmtId, qCWarning, QStringLiteral, and qUtf16Printable.

+ Here is the call graph for this function:

◆ fieldSerial()

QString QPSQLResultPrivate::fieldSerial ( qsizetype i) const
inlineoverridevirtual

Reimplemented from QSqlResultPrivate.

Definition at line 261 of file qsql_psql.cpp.

References QString::arg(), and i.

+ Here is the call graph for this function:

◆ processResults()

bool QPSQLResultPrivate::processResults ( )

Definition at line 288 of file qsql_psql.cpp.

References canFetchMoreRows, currentSize, PGRES_SINGLE_TUPLE, qMakeError(), QSqlError::StatementError, stmtId, and QCoreApplication::translate().

+ Here is the call graph for this function:

◆ QSqlResultPrivate()

QSqlResultPrivate::QSqlResultPrivate ( QSqlResult * q,
const QSqlDriver * drv )
inline

Definition at line 45 of file qsqlresult_p.h.

Member Data Documentation

◆ canFetchMoreRows

bool QPSQLResultPrivate::canFetchMoreRows = false

Definition at line 269 of file qsql_psql.cpp.

Referenced by processResults().

◆ currentSize

int QPSQLResultPrivate::currentSize = -1

Definition at line 268 of file qsql_psql.cpp.

Referenced by processResults().

◆ nextResultSets

std::queue<PGresult*> QPSQLResultPrivate::nextResultSets

Definition at line 264 of file qsql_psql.cpp.

◆ preparedQueriesEnabled

bool QPSQLResultPrivate::preparedQueriesEnabled = false

Definition at line 270 of file qsql_psql.cpp.

◆ preparedStmtId

QString QPSQLResultPrivate::preparedStmtId

Definition at line 265 of file qsql_psql.cpp.

Referenced by deallocatePreparedStmt().

◆ result

PGresult* QPSQLResultPrivate::result = nullptr

Definition at line 266 of file qsql_psql.cpp.

◆ stmtId

StatementId QPSQLResultPrivate::stmtId = InvalidStatementId

Definition at line 267 of file qsql_psql.cpp.

Referenced by processResults().


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