diff --git a/CHANGELOG.md b/CHANGELOG.md index 96f363f48..0b6a271d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,14 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one exception: - **Fixed**: [#980](https://github.com/groue/GRDB.swift/pull/980) by [@jroselightricks](https://github.com/jroselightricks): Fix spelling - **Fixed**: [#989](https://github.com/groue/GRDB.swift/pull/989) by [@pp5x](https://github.com/pp5x): FTS: add support of ifNotExists in synchronize() - **New**: The `selectID()` method is now available for [Identifiable Records](README.md#identifiable-records) +- **New**: Cached prepared statements can profit from [SQL Interpolation](Documentation/SQLInterpolation.md): + + ```swift + let updateStatement = try db.cachedUpdateStatement(literal: "INSERT ...") + let selectStatement = try db.cachedSelectStatement(literal: "SELECT ...") + // ~~~~~~~ + ``` + ## 5.8.0 diff --git a/README.md b/README.md index 5a1fe8f38..14b9c34db 100644 --- a/README.md +++ b/README.md @@ -1855,7 +1855,7 @@ Cached statements also support [SQL Interpolation]: ```swift let updateStatement = try db.cachedUpdateStatement(literal: "INSERT ...") let selectStatement = try db.cachedSelectStatement(literal: "SELECT ...") -// ~~~~~~~ +// ~~~~~~~ ``` > :warning: **Warning**: Should a cached prepared statement throw an error, don't reuse it (it is a programmer error). Instead, reload one from the cache.