Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QPSQLResultPrivate Class Reference
+ 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 ()
 
virtual QString fieldSerial (qsizetype) const
 
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
 

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 250 of file qsql_psql.cpp.

Member Function Documentation

◆ deallocatePreparedStmt()

void QPSQLResultPrivate::deallocatePreparedStmt ( )

Definition at line 377 of file qsql_psql.cpp.

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

+ Here is the call graph for this function:

◆ fieldSerial()

QString QPSQLResultPrivate::fieldSerial ( qsizetype  i) const
inlineoverridevirtual

Reimplemented from QSqlResultPrivate.

Definition at line 257 of file qsql_psql.cpp.

References i, and QString::number().

+ Here is the call graph for this function:

◆ processResults()

bool QPSQLResultPrivate::processResults ( )

Definition at line 284 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 265 of file qsql_psql.cpp.

Referenced by processResults().

◆ currentSize

int QPSQLResultPrivate::currentSize = -1

Definition at line 264 of file qsql_psql.cpp.

Referenced by processResults().

◆ nextResultSets

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

Definition at line 260 of file qsql_psql.cpp.

◆ preparedQueriesEnabled

bool QPSQLResultPrivate::preparedQueriesEnabled = false

Definition at line 266 of file qsql_psql.cpp.

◆ preparedStmtId

QString QPSQLResultPrivate::preparedStmtId

Definition at line 261 of file qsql_psql.cpp.

Referenced by deallocatePreparedStmt().

◆ result

PGresult* QPSQLResultPrivate::result = nullptr

Definition at line 262 of file qsql_psql.cpp.

◆ stmtId

StatementId QPSQLResultPrivate::stmtId = InvalidStatementId

Definition at line 263 of file qsql_psql.cpp.

Referenced by processResults().


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