The result of an SQL query, use GetSqlResultSetColumn operation to access results.
#include <DataAnalysis/DataStructures/sqlresultset.h>
◆ SqlResultSet()
◆ ~SqlResultSet()
◆ clear()
◆ exec()
bool exec |
( |
QString |
queryString, |
|
|
const QSqlDatabase & |
db = QSqlDatabase() |
|
) |
| |
- Parameters
-
queryString | the SQL query string |
db | the database |
Execute an SQL query on the result set.
◆ forwardOnlyQuery()
QSqlQuery forwardOnlyQuery |
( |
| ) |
const |
forward only query.
- Note
- This could abandon cached result and re-execute query.
◆ lastError()
QSqlError lastError |
( |
| ) |
const |
get last error from QSqlQuery
◆ query()
QSqlQuery query |
( |
| ) |
const |
◆ size()
return size of records
- Note
- If the underlying SQL driver does not support size feature, this function will try work through the records to count the size.