1 #ifndef EASYQTSQL_NONQUERYRESULT_H 2 #define EASYQTSQL_NONQUERYRESULT_H 29 #ifndef EASY_QT_SQL_MAIN 63 return m_query.numRowsAffected();
73 return m_query.lastInsertId();
83 return m_query.lastError();
93 return m_query.lastQuery();
103 return m_query.executedQuery();
114 #endif // EASYQTSQL_NONQUERYRESULT_H QSqlError lastError() const
Returns error information about the last error (if any) that occurred with this query.
Definition: EasyQtSql_NonQueryResult.h:81
QString lastQuery() const
Returns the text of the current query being used, or an empty string if there is no current query tex...
Definition: EasyQtSql_NonQueryResult.h:91
QVariant lastInsertId() const
Returns the object ID of the most recent inserted row if the database supports it.
Definition: EasyQtSql_NonQueryResult.h:71
QSqlQuery & unwrappedQuery()
Returns reference on wrapped QSqlQuery.
Definition: EasyQtSql_NonQueryResult.h:51
QSqlQuery wrapper for non-select query results reading.
Definition: EasyQtSql_NonQueryResult.h:38
QSqlDatabase wrapper.
Definition: EasyQtSql_Transaction.h:67
QSqlQuery wrapper for DELETE FROM ... WHERE .. query execution.
Definition: EasyQtSql_DeleteQuery.h:39
QSqlDatabase transaction wrapper.
Definition: EasyQtSql_Transaction.h:398
int numRowsAffected() const
Returns the number of rows affected by the result's SQL statement, or -1 if it cannot be determined...
Definition: EasyQtSql_NonQueryResult.h:61
QString executedQuery() const
Returns the last query that was successfully executed.
Definition: EasyQtSql_NonQueryResult.h:101
QSqlQuery wrapper for INSERT INTO table query execution.
Definition: EasyQtSql_InsertQuery.h:39
QSqlQuery wrapper for UPDATE ... SET ... WHERE ... query execution.
Definition: EasyQtSql_UpdateQuery.h:39