README.md

This commit is contained in:
Gwendal Roué committed 2015-09-08 18:56:44 +02:00
1 parent 570af27698
commit bf8a1cd4da
1 file changed
+4
+4
View File
@@ -210,9 +210,13 @@ dbQueue.inDatabase { db in
Person.fetch(db, "SELECT ...", arguments: ...) // AnySequence<Person>
Person.fetchAll(db, "SELECT ...", arguments: ...) // [Person]
Person.fetchOne(db, "SELECT ...", arguments: ...) // Person?
Person.fetchOne(db, primaryKey: 12) // Person?
Person.fetchOne(db, key: ["name": "Arthur"]) // Person?
}
```
The last two methods are the only ones that don't take a custom SQL query as an argument. If SQL is not your cup of tea, then maybe you are looking for a query builder. [stephencelis/SQLite.swift]( )https://github.com/stephencelis/SQLite.swift/blob/master/Documentation/Index.md#selecting-rows) is a pretty popular one.
- [Row Queries](#row-queries)
- [Value Queries](#value-queries)
- [Row Models](#row-models)