mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
README.md
This commit is contained in:
1 parent
fc59eb10b7
commit
65279460be
1 file changed
+4
-3
@@ -185,13 +185,14 @@ The `inDatabase` and `inTransaction` methods perform your **database statements*
|
||||
```swift
|
||||
// Extract values from the database:
|
||||
let rows = dbQueue.inDatabase { db in
|
||||
Row.fetch(db, "SELECT ...")
|
||||
Row.fetchAll(db, "SELECT ...")
|
||||
}
|
||||
|
||||
// Execute database statements:
|
||||
dbQueue.inDatabase { db in
|
||||
let persons = Person.fetchAll(db, "SELECT...")
|
||||
let books = Book.fetchAll(db, "SELECT ...")
|
||||
for person in Person.fetch(db, "SELECT...") {
|
||||
...
|
||||
}
|
||||
...
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user