Foster SQL interpolation

This commit is contained in:
Gwendal Roué committed 2019-02-21 23:23:35 +01:00
1 parent d9dc21a073
commit e36ca9f645
1 file changed
+9 -2
+9 -2
View File
@@ -123,6 +123,12 @@ try dbQueue.write { db in
""", arguments: ["Paris", true, 48.85341, 2.3488])
let parisId = db.lastInsertedRowID
// Swift 5 only
try db.execute(literal: """
INSERT INTO place (title, favorite, latitude, longitude)
VALUES (\("Madrid"), \(true), \(40.41678), \(-3.70379))
""")
}
```
@@ -264,7 +270,7 @@ Documentation
#### SQLite and SQL
- [SQLite API](#sqlite-api): The low-level SQLite API • [executing updates](#executing-updates) • [fetch queries](#fetch-queries)
- [SQLite API](#sqlite-api): The low-level SQLite API • [executing updates](#executing-updates) • [fetch queries](#fetch-queries) • [SQL Interpolation]
#### Records and the Query Interface
@@ -572,6 +578,7 @@ SQLite API
- [Swift enums](#swift-enums)
- [Custom Value Types](#custom-value-types)
- [Transactions and Savepoints](#transactions-and-savepoints)
- [SQL Interpolation]
Advanced topics:
@@ -8657,4 +8664,4 @@ This chapter has been renamed [Beyond FetchableRecord].
[DatabaseRegionConvertible]: #the-databaseregionconvertible-protocol
[ValueObservation and DatabaseRegionObservation]: #valueobservation-and-databaseregionobservation
[DatabaseRegion]: #databaseregion
[SQL Interpolation]: (Documentation/SQLInterpolation.md)
[SQL Interpolation]: Documentation/SQLInterpolation.md