mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
README.md
This commit is contained in:
1 parent
91bb96bcb1
commit
335e23c75c
1 file changed
-3
@@ -148,7 +148,6 @@ Lazy sequences can not be consumed outside of a database queue, but arrays are O
|
||||
```swift
|
||||
let rows = dbQueue.inDatabase { db in
|
||||
return db.fetchAllRows("SELECT ...") // [Row]
|
||||
return Array(fetchRows("SELECT ...")) // [Row]
|
||||
return fetchRows("SELECT ...").filter { ... } // [Row]
|
||||
}
|
||||
for row in rows { ... } // OK
|
||||
@@ -219,7 +218,6 @@ Lazy sequences can not be consumed outside of a database queue, but arrays are O
|
||||
```swift
|
||||
let names = dbQueue.inDatabase { db in
|
||||
return db.fetchAll(String.self, "SELECT name ...") // [String?]
|
||||
return Array(db.fetch(String.self, "SELECT name ...")) // [String?]
|
||||
return db.fetch(String.self, "SELECT name ...").filter { ... } // [String?]
|
||||
}
|
||||
for name in names { ... } // OK
|
||||
@@ -565,7 +563,6 @@ Lazy sequences can not be consumed outside of a database queue, but arrays are O
|
||||
```swift
|
||||
let persons = dbQueue.inDatabase { db in
|
||||
return db.fetchAll(Person.self, "SELECT name ...") // [Person]
|
||||
return Array(db.fetch(Person.self, "SELECT name ...")) // [Person]
|
||||
return db.fetch(Person.self, "SELECT name ...").filter { ... } // [Person]
|
||||
}
|
||||
for person in persons { ... } // OK
|
||||
|
||||
Reference in new issue
Block a user