mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
570af27698
commit
bf8a1cd4da
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user