8#include <QtSql/qtsqlglobal.h>
9#include <QtSql/qsqlrecord.h>
10#include <QtCore/qlist.h>
11#include <QtCore/qmetaobject.h>
12#include <QtCore/qstring.h>
21 Q_PROPERTY(QString name READ name WRITE setName)
22 Q_PROPERTY(QString cursorName READ cursorName WRITE setCursorName)
25 explicit QSqlIndex(
const QString &cursorName = QString(),
const QString &name = QString());
26 QSqlIndex(
const QSqlIndex &other);
27 QSqlIndex(QSqlIndex &&other)
noexcept =
default;
29 QSqlIndex &operator=(
const QSqlIndex &other);
30 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QSqlIndex)
32 void swap(QSqlIndex &other)
noexcept {
33 QSqlRecord::swap(other);
34 cursor.swap(other.cursor);
36 sorts.swap(other.sorts);
39 void setCursorName(
const QString &cursorName);
40 inline QString cursorName()
const {
return cursor; }
41 void setName(
const QString& name);
42 inline QString name()
const {
return nm; }
44 void append(
const QSqlField &field);
45 void append(
const QSqlField &field,
bool desc);
47 bool isDescending(
int i)
const;
48 void setDescending(
int i,
bool desc);
void qSplitTableQualifier(const QString &qualifier, QString &catalog, QString &schema, QString &table) const
QList< QVariant * > valueCache
bool fetchLast() override
Positions the result to the last record (last row) in the result.
QVariant handle() const override
Returns the low-level database handle for this result set wrapped in a QVariant or an invalid QVarian...
void detachFromResultSet() override
void virtual_hook(int id, void *data) override
int numRowsAffected() override
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
bool fetch(int i) override
Positions the result to an arbitrary (zero-based) row index.
bool isNull(int i) override
Returns true if the field at position index in the current row is null; otherwise returns false.
bool exec() override
Executes the query, returning true if successful; otherwise returns false.
bool fetchFirst() override
Positions the result to the first record (row 0) in the result.
int size() override
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
bool prepare(const QString &query) override
Prepares the given query for execution; the query will normally use placeholders so that it can be ex...
QSqlRecord record() const override
Returns the current record if the query is active; otherwise returns an empty QSqlRecord.
bool fetchNext() override
Positions the result to the next available record (row) in the result.
bool reset(const QString &query) override
Sets the result to use the SQL statement query for subsequent data retrieval.
bool nextResult() override
QVariant data(int field) override
Returns the data for field index in the current row as a QVariant.
\inmodule QtCore \reentrant
The QSqlError class provides SQL database error information.
The QSqlField class manipulates the fields in SQL database tables and views.
The QSqlIndex class provides functions to manipulate and describe database indexes.
\inmodule QtCore \reentrant
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
static QSqlField qMakeFieldInfo(const QDB2ResultPrivate *d, int i)
static QSqlField qMakeFieldInfo(const SQLHANDLE hStmt)
static bool qMakeStatement(QDB2ResultPrivate *d, bool forwardOnly, bool setForwardOnly=true)
static QByteArray qGetBinaryData(SQLHANDLE hStmt, int column, SQLLEN &lengthIndicator, bool &isNull)
static void qSqlWarning(const QString &message, const T *d)
static QString qGetStringData(SQLHANDLE hStmt, int column, int colSize, bool &isNull)
static SQLBIGINT qGetBigIntData(SQLHANDLE hStmt, int column, bool &isNull)
static int qGetIntData(SQLHANDLE hStmt, int column, bool &isNull)
static SQLTCHAR * qToTChar(const QString &str)
static const SQLSMALLINT TABLENAMESIZE
static const SQLSMALLINT qParamType[4]
static QString qFromTChar(SQLTCHAR *str)
static const int COLNAMESIZE
static QSqlError qMakeError(const QString &err, QSqlError::ErrorType type, const T *p)
static QMetaType qDecodeDB2Type(SQLSMALLINT sqltype)
static QString qDB2Warn(const QDB2DriverPrivate *d, QStringList *errorCodes=nullptr)
static QString qWarnDB2Handle(int handleType, SQLHANDLE handle, int *errorCode)
static QString qDB2Warn(const QDB2ResultPrivate *d, QStringList *errorCodes=nullptr)
static double qGetDoubleData(SQLHANDLE hStmt, int column, bool &isNull)