FTS3
The virtual table module for the FTS3 full-text engine.
struct FTS3
To create FTS3 tables, use the Database
method create(virtualTable:options:using:_:)
:
// CREATE VIRTUAL TABLE document USING fts3(content)
try db.create(virtualTable: "document", using: FTS3()) { t in
t.column("content")
}
Related SQLite documentation: https://www.sqlite.org/fts3.html
The FTS3 Module
init(
) Creates an FTS3 module.
class FTS3TableDefinition
A
FTS3TableDefinition
lets you define the components of an FTS3 virtual table.struct FTS3TokenizerDescriptor
The descriptor for an
FTS3
tokenizer.
Full-Text Search Pattern
struct FTS3Pattern
A full text pattern for querying FTS3 virtual tables.
Tokenizing Strings
static func tokenize(String, withTokenizer: FTS3TokenizerDescriptor
) throws -> [String] Returns an array of tokens found in the string argument.