Contains information about results of an operation on the SqlDataModel such as a fetch, insert or update.
#include <DataAnalysis/DataStructures/sqldatamodelresult.h>
◆ SqlDataModelResult() [1/3]
- Parameters
-
type | The type of result (or error type if it was an error) |
text | The text description of the result. |
queryText | The SQL query text used to generate the result. |
Constructs a result from its constituent parts.
◆ SqlDataModelResult() [2/3]
- Parameters
-
failedQuery | The query which was last executed. |
Constructs a result from an existing SQLError.
◆ SqlDataModelResult() [3/3]
- Parameters
-
Constructs a result from an existing SQLError.
◆ boundValues()
QMap< QString, QVariant > boundValues |
( |
| ) |
const |
- Returns
- Values bound to the query for use with placeholders, if any were used.
◆ errorCode()
const QString & errorCode |
( |
| ) |
const |
- Returns
- If applicable, the vendor specific error code associated with the type of error that occured.
◆ isError()
- Returns
- True if this result is a type of error, otherwise returns false.
◆ queryText()
const QString & queryText |
( |
| ) |
const |
- Returns
- Returns the text of the executed query that resulted in this result (if available). Not always provided.
◆ text()
- Returns
- The text description of the result. If it was an SQL error, this will contain the concatenated database and driver text.
◆ type()
- Returns
- The type of error that this result represents.