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