7#include <QtSql/qtsqlglobal.h> 
    8#include <QtCore/qvariant.h> 
    9#include <QtCore/qcontainerfwd.h> 
   30    friend class ::tst_QSqlQuery;
 
   49    bool isSelect() 
const;
 
   50    bool isForwardOnly() 
const;
 
   52    virtual void setAt(
int at);
 
   53    virtual void setActive(
bool a);
 
   56    virtual void setSelect(
bool s);
 
   62    virtual bool savePrepare(
const QString& sqlquery);
 
   65                           QSql::ParamType 
type);
 
   69    QSql::ParamType bindValueType(
const QString& placeholder) 
const;
 
   70    QSql::ParamType bindValueType(
int pos) 
const;
 
   71    int boundValueCount() 
const;
 
   72#if QT_SQL_REMOVED_SINCE(6, 6) 
   82    bool hasOutValues() 
const;
 
   90    virtual bool fetchNext();
 
   91    virtual bool fetchPrevious();
 
   97    virtual QVariant lastInsertId() 
const;
 
  100    virtual void virtual_hook(
int id, 
void *
data);
 
  101    virtual bool execBatch(
bool arrayBind = 
false);
 
  102    virtual void detachFromResultSet();
 
  105    virtual bool nextResult();
 
  106    void resetBindCount(); 
 
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
The QSqlError class provides SQL database error information.
The QSqlQuery class provides a means of executing and manipulating SQL statements.
The QSqlRecord class encapsulates a database record.
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases.
virtual bool isNull(int i)=0
Returns true if the field at position index in the current row is null; otherwise returns false.
QVariantList boundValues(QT6_DECL_NEW_OVERLOAD) const
virtual QVariant data(int i)=0
Returns the data for field index in the current row as a QVariant.
BindingSyntax
This enum type specifies the different syntaxes for specifying placeholders in prepared queries.
virtual bool fetchLast()=0
Positions the result to the last record (last row) in the result.
virtual bool fetch(int i)=0
Positions the result to an arbitrary (zero-based) row index.
QVariantList & boundValues(QT6_DECL_NEW_OVERLOAD)
virtual int size()=0
Returns the size of the SELECT result, or -1 if it cannot be determined or if the query is not a SELE...
virtual bool fetchFirst()=0
Positions the result to the first record (row 0) in the result.
virtual int numRowsAffected()=0
Returns the number of rows affected by the last query executed, or -1 if it cannot be determined or i...
virtual bool reset(const QString &sqlquery)=0
Sets the result to use the SQL statement query for subsequent data retrieval.
QSqlResultPrivate * d_ptr
\macro QT_RESTRICTED_CAST_FROM_ASCII
query setForwardOnly(true)
Combined button and popup list for selecting options.
GLuint64 GLenum void * handle
GLboolean GLboolean GLboolean GLboolean a
[7]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QT6_DECL_NEW_OVERLOAD
qDebug()<< QUrl("file copy setQuery(copy.query(QUrl::FullyDecoded), QUrl::DecodedMode)