EasyQtSql
Easy SQL data access helper for QtSql
EasyQtSql::NonQueryResult Class Reference

QSqlQuery wrapper for non-select query results reading. More...

#include <EasyQtSql.h>

Public Member Functions

QSqlQuery & unwrappedQuery ()
 Returns reference on wrapped QSqlQuery. More...
 
int numRowsAffected () const
 Returns the number of rows affected by the result's SQL statement, or -1 if it cannot be determined. More...
 
QVariant lastInsertId () const
 Returns the object ID of the most recent inserted row if the database supports it. More...
 
QSqlError lastError () const
 Returns error information about the last error (if any) that occurred with this query. More...
 
QString lastQuery () const
 Returns the text of the current query being used, or an empty string if there is no current query text. More...
 
QString executedQuery () const
 Returns the last query that was successfully executed. More...
 

Friends

class Database
 
class Transaction
 
class InsertQuery
 
class UpdateQuery
 
class DeleteQuery
 

Detailed Description

QSqlQuery wrapper for non-select query results reading.

Member Function Documentation

◆ executedQuery()

QString EasyQtSql::NonQueryResult::executedQuery ( ) const
inline

Returns the last query that was successfully executed.

Wrapper over QSqlQuery::executedQuery()

◆ lastError()

QSqlError EasyQtSql::NonQueryResult::lastError ( ) const
inline

Returns error information about the last error (if any) that occurred with this query.

Wrapper over QSqlQuery::lastError()

◆ lastInsertId()

QVariant EasyQtSql::NonQueryResult::lastInsertId ( ) const
inline

Returns the object ID of the most recent inserted row if the database supports it.

Wrapper over QSqlQuery::lastInsertId()

◆ lastQuery()

QString EasyQtSql::NonQueryResult::lastQuery ( ) const
inline

Returns the text of the current query being used, or an empty string if there is no current query text.

Wrapper over QSqlQuery::lastQuery()

◆ numRowsAffected()

int EasyQtSql::NonQueryResult::numRowsAffected ( ) const
inline

Returns the number of rows affected by the result's SQL statement, or -1 if it cannot be determined.

Wrapper over QSqlQuery::numRowsAffected()

◆ unwrappedQuery()

QSqlQuery& EasyQtSql::NonQueryResult::unwrappedQuery ( )
inline

Returns reference on wrapped QSqlQuery.

Friends And Related Function Documentation

◆ Database

friend class Database
friend

◆ DeleteQuery

friend class DeleteQuery
friend

◆ InsertQuery

friend class InsertQuery
friend

◆ Transaction

friend class Transaction
friend

◆ UpdateQuery

friend class UpdateQuery
friend

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