FastDatabaseValueCursor
public final class FastDatabaseValueCursor<Value>: DatabaseCursor
where Value: DatabaseValueConvertible & 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
public typealias Element = Value
-
Declaration
Swift
public let statement: Statement