ResultSet
public final class ResultSet : Sequence, IteratorProtocol
ResultSet is a result returned from a query.
-
The Element.
Declaration
Swift
public typealias Element = Result
-
Advances to the next result row and returns the advanced result row.
Declaration
Swift
public func next() -> Result?
Return Value
The advanced Result object.
-
All unenumerated results.
Declaration
Swift
public func allResults() -> [Result]
Return Value
An array of all unenumerated Result objects.
-
Get all query results as an array of the decodable model objects.
@warning This function may take a long time and consume a large amount of memory depending on the data size and the number of results.
Declaration
Swift
public func data<T>(as type: T.Type, dataKey: String? = nil) throws -> Array<T> where T : Decodable