NullableDatabaseValueCursor

public final class NullableDatabaseValueCursor<Value> : Cursor 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)
    }
}