mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
381f21ba92
commit
7d30fda97e
1 file changed
+2
-2
@@ -1408,12 +1408,12 @@ For example:
|
||||
```swift
|
||||
dbQueue.inDatabase { db in
|
||||
// All persons with an email ending in @domain.com:
|
||||
let persons = Person.fetch(db,
|
||||
Person.fetch(db,
|
||||
"SELECT * FROM persons WHERE email LIKE ?",
|
||||
arguments: ["%@domain.com"])
|
||||
|
||||
// All persons who own at least two pets:
|
||||
let persons = Person.fetch(db,
|
||||
Person.fetch(db,
|
||||
"SELECT persons.* " +
|
||||
"FROM persons " +
|
||||
"JOIN pets ON pets.masterId = persons.id " +
|
||||
|
||||
Reference in new issue
Block a user