mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
README.md
This commit is contained in:
1 parent
3345e5b82f
commit
a5bcc1d964
1 file changed
+2
-4
@@ -53,7 +53,7 @@ SQLite API:
|
||||
- [Fetch Queries](#fetch-queries)
|
||||
- [Swift Enums](#swift-enums)
|
||||
- [Custom Types](#custom-types)
|
||||
- [Statements](#statements)
|
||||
- [Prepared Statements](#prepared-statements)
|
||||
- [Error Handling](#error-handling)
|
||||
|
||||
Application tools:
|
||||
@@ -381,7 +381,7 @@ db.fetchOne(DBDate.self, "SELECT ...", bindings: ...) // DBDate?
|
||||
```
|
||||
|
||||
|
||||
## Statements
|
||||
## Prepared Statements
|
||||
|
||||
SQLite supports **Prepared Statements** that can be reused.
|
||||
|
||||
@@ -423,8 +423,6 @@ try dbQueue.inDatabase { db in
|
||||
}
|
||||
```
|
||||
|
||||
Note that the `Database.selectStatement()` function is the **only** function of GRDB.swift that may throw an error when building a SELECT statement. All other fetching functions prefer dying in a loud and verbose crash when given an invalid SELECT statement.
|
||||
|
||||
|
||||
## Error Handling
|
||||
|
||||
|
||||
Reference in new issue
Block a user