RecordCursor
public final class RecordCursor<Record: RowConvertible> : Cursor
A cursor of records. For example:
struct Player : RowConvertible { ... }
try dbQueue.inDatabase { db in
let players: RecordCursor<Player> = try Player.fetchCursor(db, "SELECT * FROM players")
}
-
Declaration
Swift
public func next() throws -> Record?