From 220d221ea69272768f7f37a54d0d8fd3587db4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 19 Jun 2021 14:03:37 +0200 Subject: [PATCH] CHANGELOG --- CHANGELOG.md | 8 ++++++++ README.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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.