From 3aaa5e74ecc865c36a353cd0d2f3d7850c1abe2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 24 Feb 2019 17:48:10 +0100 Subject: [PATCH] Update README --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8350b6969..42c3be55b 100644 --- a/README.md +++ b/README.md @@ -5044,7 +5044,7 @@ See below some examples of matches: ```swift try db.create(virtualTable: "book", using: FTS4()) { t in t.tokenizer = .unicode61() - t.tokenizer = .unicode61(removeDiacritics: false) + t.tokenizer = .unicode61(diacritics: .keep) } ``` @@ -5145,14 +5145,14 @@ The version of SQLite that ships with iOS, macOS and watchOS does not always sup pod 'GRDBCipher' ``` -3. Use a [custom SQLite build](Documentation/CustomSQLiteBuilds.md) and activate the `SQLITE_ENABLE_FTS5` compilation option. +3. Use a [custom SQLite build] and activate the `SQLITE_ENABLE_FTS5` compilation option. ### Create FTS5 Virtual Tables **FTS5 full-text tables store and index textual content.** -To use FTS5, you'll need a [custom SQLite build](Documentation/CustomSQLiteBuilds.md) that activates the `SQLITE_ENABLE_FTS5` compilation option. +To use FTS5, you'll need a [custom SQLite build] that activates the `SQLITE_ENABLE_FTS5` compilation option. Create FTS5 tables with the `create(virtualTable:using:)` method: @@ -5245,7 +5245,7 @@ See below some examples of matches: ```swift try db.create(virtualTable: "book", using: FTS5()) { t in t.tokenizer = .unicode61() - t.tokenizer = .unicode61(removeDiacritics: false) + t.tokenizer = .unicode61(diacritics: .keep) } ``` @@ -5275,7 +5275,7 @@ See below some examples of matches: try db.create(virtualTable: "book", using: FTS5()) { t in t.tokenizer = .porter() // porter wrapping unicode61 (the default) t.tokenizer = .porter(.ascii) // porter wrapping ascii - t.tokenizer = .porter(.unicode61(removeDiacritics: false)) // porter wrapping unicode61 without diacritics stripping + t.tokenizer = .porter(.unicode61(diacritics: .keep)) // porter wrapping unicode61 without diacritics stripping } ``` @@ -7264,7 +7264,7 @@ Use this protocol when you want to encapsulate your complex requests in a dedica ### Support for SQLite Pre-Update Hooks -A [custom SQLite build](Documentation/CustomSQLiteBuilds.md) can activate [SQLite "preupdate hooks"](https://sqlite.org/c3ref/preupdate_count.html). In this case, TransactionObserverType gets an extra callback which lets you observe individual column values in the rows modified by a transaction: +A [custom SQLite build] can activate [SQLite "preupdate hooks"](https://sqlite.org/c3ref/preupdate_count.html). In this case, TransactionObserverType gets an extra callback which lets you observe individual column values in the rows modified by a transaction: ```swift protocol TransactionObserverType : class { @@ -8665,3 +8665,4 @@ This chapter has been renamed [Beyond FetchableRecord]. [ValueObservation and DatabaseRegionObservation]: #valueobservation-and-databaseregionobservation [DatabaseRegion]: #databaseregion [SQL Interpolation]: Documentation/SQLInterpolation.md +[custom SQLite build]: Documentation/CustomSQLiteBuilds.md