FastDatabaseValueCursor
public final class FastDatabaseValueCursor<Value> : Cursor where Value : DatabaseValueConvertible, Value : StatementColumnConvertible
A cursor of database values extracted from a single column. For example:
try dbQueue.read { db in
let names: ColumnCursor<String> = try String.fetchCursor(db, sql: "SELECT name FROM player")
while let name = names.next() { // String
print(name)
}
}
-
Declaration
Swift
@inlinable public func next() throws -> Value?