FTS5Pattern
A full text pattern for querying FTS5
virtual tables.
struct FTS5Pattern
Related SQLite documentation: https://www.sqlite.org/fts5.html#full_text_query_syntax
Creating Raw FTS5 Patterns
func makeFTS5Pattern(rawPattern: String, forTable: String
) throws -> FTS5Pattern Creates an FTS5 pattern from a raw pattern string.
Creating FTS5 Patterns from User Input
init?(matchingAllPrefixesIn: String
) Creates a pattern that matches all token prefixes found in the input string.
init?(matchingAllTokensIn: String
) Creates a pattern that matches all tokens found in the input string.
init?(matchingAnyTokenIn: String
) Creates a pattern that matches any token found in the input string.
init?(matchingPhrase: String
) Creates a pattern that matches a contiguous string.
init?(matchingPrefixPhrase: String
) Creates a pattern that matches the prefix of an indexed document.