Diacritics
Options for Latin script characters.
enum Diacritics
Options for Latin script characters.
enum Diacritics
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct FTS3
The virtual table module for the FTS3 full-text engine.
case keep
Do not remove diacritics from Latin script characters. This option matches the remove_diacritics=0
tokenizer argument.
case removeLegacy
Remove diacritics from Latin script characters. This option matches the remove_diacritics=1
tokenizer argument.
case remove
Remove diacritics from Latin script characters. This option matches the remove_diacritics=2
tokenizer argument.
static let porter: FTS3TokenizerDescriptor
The porter tokenizer.
static let simple: FTS3TokenizerDescriptor
The simple tokenizer.
static func unicode61(diacritics: FTS3.Diacritics = .removeLegacy, separators: Set<Character> = [], tokenCharacters: Set<Character> = []) -> FTS3TokenizerDescriptor
The unicode61 tokenizer.
init()
Creates an FTS3 module.
static func tokenize(_ string: String, withTokenizer tokenizer: FTS3TokenizerDescriptor = .simple) throws -> [String]
Returns an array of tokens found in the string argument.
var moduleName: String { get }
func database(_ db: Database, didCreate tableName: String, using definition: FTS3TableDefinition)
func makeTableDefinition(configuration: VirtualTableConfiguration) -> FTS3TableDefinition
func moduleArguments(for definition: FTS3TableDefinition, in db: Database) -> [String]
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.