NullableDatabaseValueCursor
public final class NullableDatabaseValueCursor<Value> : DatabaseCursor where Value : DatabaseValueConvertible
A cursor of optional database values extracted from a single column. For example:
try dbQueue.read { db in
let urls: NullableDatabaseValueCursor<URL> = try Optional<URL>.fetchCursor(db, sql: "SELECT url FROM link")
while let url = urls.next() { // URL?
print(url)
}
}
-
Declaration
Swift
public typealias Element = Value?
-
Declaration
Swift
public let statement: Statement