From 1426c7fd3895f80534333c050e52a3a6a5bee17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 3 Oct 2018 12:57:21 +0200 Subject: [PATCH] New suggested contribution: Custom FTS5 Auxiliary Functions --- CONTRIBUTING.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 026b77607..3b3ddf374 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -75,6 +75,7 @@ The ideas, in alphabetical order: - [Carthage] - [CloudKit] - [Concurrency] +- [Custom FTS5 Auxiliary Functions] - [Database Observation] - [Date and Time Functions] - [Decode NSDecimalNumber from Text Columns] @@ -155,6 +156,19 @@ And this creates improvement opportunities: - The introduction of an "ultra-safe" concurrency mode. Maybe something that restricts all database accesses to the main thread, like [FCModel](https://github.com/marcoarment/FCModel). Maybe in a separate companion library. +### Custom FTS5 Auxiliary Functions + +:question: Unknown Difficulty + +The SQLite documentation provides [this description](https://www.sqlite.org/fts5.html) of FTS5 auxiliary functions: + +> An application may use FTS5 auxiliary functions to retrieve extra information regarding the matched row. For example, an auxiliary function may be used to retrieve a copy of a column value for a matched row with all instances of the matched term surrounded by html tags. + +Applications can define their own [custom FTS5 auxiliary functions](https://www.sqlite.org/fts5.html#custom_auxiliary_functions) with SQLite, but GRDB does not yet provide any Swift API for that. + +See issue [#421](https://github.com/groue/GRDB.swift/issues/421) for more information. + + ### Database Observation :muscle: Hard @@ -367,6 +381,7 @@ Features that blur this focus are non-goals: [Carthage]: #carthage [CloudKit]: #cloudkit [Codable Records]: README.md#codable-records +[Custom FTS5 Auxiliary Functions]: #custom-fts5-auxiliary-functions [Database Observation]: #database-observation [Date and Time Functions]: #date-and-time-functions [Decode NSDecimalNumber from Text Columns]: #decode-nsdecimalnumber-from-text-columns