Diacritics
Options for Latin script characters. Matches the raw “remove_diacritics” tokenizer argument.
enum Diacritics
Related SQLite documentation: https://www.sqlite.org/fts5.html#unicode61_tokenizer
Options for Latin script characters. Matches the raw “remove_diacritics” tokenizer argument.
enum Diacritics
Related SQLite documentation: https://www.sqlite.org/fts5.html#unicode61_tokenizer
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct FTS5
The virtual table module for the FTS5 full-text engine.
case keep
Do not remove diacritics from Latin script characters. This option matches the raw “remove_diacritics=0” tokenizer argument.
case removeLegacy
Remove diacritics from Latin script characters. This option matches the raw “remove_diacritics=1” tokenizer argument.
case remove
Remove diacritics from Latin script characters. This option matches the raw “remove_diacritics=2” tokenizer argument, available from SQLite 3.27.0
init(components: [String])
Creates an FTS5 tokenizer descriptor.
static func ascii(separators: Set<Character> = [], tokenCharacters: Set<Character> = []) -> FTS5TokenizerDescriptor
The “ascii” tokenizer.
static func porter(wrapping base: FTS5TokenizerDescriptor? = nil) -> FTS5TokenizerDescriptor
The “porter” tokenizer.
static func unicode61(diacritics: FTS5.Diacritics = .removeLegacy, categories: String = "", separators: Set<Character> = [], tokenCharacters: Set<Character> = []) -> FTS5TokenizerDescriptor
The “unicode61” tokenizer.
init()
Creates an FTS5 module.
static func api(_ db: Database) -> UnsafePointer<fts5_api>
Returns a pointer to the fts5_api
structure.
var moduleName: String { get }
The virtual table module name
func database(_ db: Database, didCreate tableName: String, using definition: FTS5TableDefinition) throws
Reserved; part of the VirtualTableModule protocol.
func makeTableDefinition(configuration: VirtualTableConfiguration) -> FTS5TableDefinition
Reserved; part of the VirtualTableModule protocol.
func moduleArguments(for definition: FTS5TableDefinition, in db: Database) throws -> [String]
Don’t use this method.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.