FTS5
The virtual table module for the FTS5 full-text engine.
struct FTS5
To create FTS5 tables, use the Database
method create(virtualTable:options:using:_:)
:
// CREATE VIRTUAL TABLE document USING fts5(content)
try db.create(virtualTable: "document", using: FTS5()) { t in
t.column("content")
}
Related SQLite documentation: https://www.sqlite.org/fts5.html
The FTS5 Module
init(
) Creates an FTS5 module.
class FTS5TableDefinition
A
FTS5TableDefinition
lets you define the components of an FTS5 virtual table.class FTS5ColumnDefinition
Describes a column in an
FTS5
virtual table.struct FTS5TokenizerDescriptor
The descriptor for an
FTS5
tokenizer.
Full-Text Search Pattern
struct FTS5Pattern
A full text pattern for querying
FTS5
virtual tables.
FTS5 Tokenizers
protocol FTS5Tokenizer
A type that implements a tokenizer for the
FTS5
full-text engine.protocol FTS5CustomTokenizer
A type that implements a custom tokenizer for the
FTS5
full-text engine.protocol FTS5WrapperTokenizer
A type that implements a custom tokenizer for the
FTS5
full-text engine by wrapping another tokenizer.struct FTS5TokenFlags
Flags that tell SQLite how to register a token.
struct FTS5Tokenization
The reason why FTS5 is requesting tokenization.
Low-Level FTS5 Customization
static func api(Database
) -> UnsafePointer<fts5_api> Returns a pointer to the
fts5_api
structure.