![]() |
Qt 6.x
The Qt SDK
|
#include <qsqlcachedresult_p.h>
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) | |
![]() | |
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 |
![]() | |
QSqlResult * | q_ptr = nullptr |
QPointer< QSqlDriver > | sqldriver |
QString | sql |
QSqlError | error |
QString | executedQuery |
QHash< int, QSql::ParamType > | types |
QList< QVariant > | values |
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 | |
![]() | |
using | IndexMap = QHash< QString, QList< int > > |
using | QHolderVector = QList< QHolder > |
![]() | |
static bool | isVariantNull (const QVariant &variant) |
Definition at line 63 of file qsqlcachedresult_p.h.
|
inline |
Definition at line 73 of file qsqlcachedresult.cpp.
References colCount, QSqlResultPrivate::forwardOnly, Q_ASSERT, and rowCacheEnd.
bool QSqlCachedResultPrivate::canSeek | ( | int | i | ) | const |
Definition at line 59 of file qsqlcachedresult.cpp.
References colCount, QSqlResultPrivate::forwardOnly, i, and rowCacheEnd.
void QSqlCachedResultPrivate::cleanup | ( | ) |
Definition at line 25 of file qsqlcachedresult.cpp.
References atEnd, cache, QList< T >::clear(), colCount, and rowCacheEnd.
Referenced by 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.
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().
|
inline |
Definition at line 45 of file qsqlresult_p.h.
void QSqlCachedResultPrivate::revertLast | ( | ) |
Definition at line 66 of file qsqlcachedresult.cpp.
References colCount, QSqlResultPrivate::forwardOnly, and rowCacheEnd.
bool QSqlCachedResultPrivate::atEnd = false |
Definition at line 80 of file qsqlcachedresult_p.h.
Referenced by cleanup().
QSqlCachedResult::ValueCache QSqlCachedResultPrivate::cache |
Definition at line 77 of file qsqlcachedresult_p.h.
Referenced by cleanup(), init(), and nextIndex().
int QSqlCachedResultPrivate::colCount = 0 |
Definition at line 79 of file qsqlcachedresult_p.h.
Referenced by cacheCount(), canSeek(), cleanup(), init(), nextIndex(), and revertLast().
int QSqlCachedResultPrivate::rowCacheEnd = 0 |
Definition at line 78 of file qsqlcachedresult_p.h.
Referenced by cacheCount(), canSeek(), cleanup(), init(), nextIndex(), and revertLast().