FTS3Pattern
A full text pattern for querying FTS3 virtual tables.
struct FTS3Pattern
FTS3Pattern
can be used with both FTS3
and FTS4
tables.
Related SQLite documentation: https://www.sqlite.org/fts3.html#full_text_index_queries
Creating Raw FTS3 Patterns
init(rawPattern: String
) throws Creates a pattern from a raw pattern string.
Creating FTS3 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.