12 #include <QJsonObject>
53 QJsonObject
first()
const;
69 QJsonObject
data(
int pos)
const;
76 QJsonArray
data()
const;
The DbResult class represents a result set returned from a database query.
Definition: dbresult.h:24
QJsonObject first() const
Retrieves the first item in the result set.
Definition: dbresult.cpp:25
QJsonArray data() const
Gets all the data in the result set.
Definition: dbresult.cpp:44
int size() const
Gets the number of items in the result set.
Definition: dbresult.cpp:30
DbResult()
Default constructor for DbResult.
Definition: dbresult.cpp:8
bool isEmpty() const
Checks if the result set is empty.
Definition: dbresult.cpp:20
QString toJsonString() const
Converts the result set to a JSON string.
Definition: dbresult.cpp:49