README.md

This commit is contained in:
Gwendal Roué committed 2015-10-27 16:00:00 +01:00
1 parent 381f21ba92
commit 7d30fda97e
1 file changed
+2 -2
+2 -2
View File
@@ -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 " +