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
QSqlCachedResultPrivate Class Reference

#include <qsqlcachedresult_p.h>

+ Inheritance diagram for QSqlCachedResultPrivate:
+ Collaboration diagram for QSqlCachedResultPrivate:

Public Member Functions

bool canSeek (int i) const
 
int cacheCount () const
 
void init (int count, bool fo)
 
void cleanup ()
 
int nextIndex ()
 
void revertLast ()
 
 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

QSqlCachedResult::ValueCache cache
 
int rowCacheEnd = 0
 
int colCount = 0
 
bool atEnd = 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 63 of file qsqlcachedresult_p.h.

Member Function Documentation

◆ cacheCount()

int QSqlCachedResultPrivate::cacheCount ( ) const
inline

Definition at line 73 of file qsqlcachedresult.cpp.

References colCount, QSqlResultPrivate::forwardOnly, Q_ASSERT, and rowCacheEnd.

◆ canSeek()

bool QSqlCachedResultPrivate::canSeek ( int i) const

Definition at line 59 of file qsqlcachedresult.cpp.

References colCount, QSqlResultPrivate::forwardOnly, i, and rowCacheEnd.

◆ cleanup()

void QSqlCachedResultPrivate::cleanup ( )

Definition at line 25 of file qsqlcachedresult.cpp.

References atEnd, cache, QList< T >::clear(), colCount, and rowCacheEnd.

Referenced by init().

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

◆ init()

void QSqlCachedResultPrivate::init ( int count,
bool fo )

Definition at line 33 of file qsqlcachedresult.cpp.

References cache, cleanup(), colCount, QSqlResultPrivate::forwardOnly, initial_cache_size, Q_ASSERT, QList< T >::resize(), and rowCacheEnd.

+ Here is the call graph for this function:

◆ nextIndex()

int QSqlCachedResultPrivate::nextIndex ( )

Definition at line 47 of file qsqlcachedresult.cpp.

References cache, colCount, QSqlResultPrivate::forwardOnly, qMin(), QList< T >::resize(), rowCacheEnd, and QList< T >::size().

+ 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.

◆ revertLast()

void QSqlCachedResultPrivate::revertLast ( )

Definition at line 66 of file qsqlcachedresult.cpp.

References colCount, QSqlResultPrivate::forwardOnly, and rowCacheEnd.

Member Data Documentation

◆ atEnd

bool QSqlCachedResultPrivate::atEnd = false

Definition at line 80 of file qsqlcachedresult_p.h.

Referenced by cleanup().

◆ cache

QSqlCachedResult::ValueCache QSqlCachedResultPrivate::cache

Definition at line 77 of file qsqlcachedresult_p.h.

Referenced by cleanup(), init(), and nextIndex().

◆ colCount

int QSqlCachedResultPrivate::colCount = 0

Definition at line 79 of file qsqlcachedresult_p.h.

Referenced by cacheCount(), canSeek(), cleanup(), init(), nextIndex(), and revertLast().

◆ rowCacheEnd

int QSqlCachedResultPrivate::rowCacheEnd = 0

Definition at line 78 of file qsqlcachedresult_p.h.

Referenced by cacheCount(), canSeek(), cleanup(), init(), nextIndex(), and revertLast().


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