FTS4TableDefinition
A FTS4TableDefinition
lets you define the components of an FTS4 virtual table.
final class FTS4TableDefinition
You don’t create instances of this class. Instead, you use the Database
create(virtualTable:options:using:_:)
method:
try db.create(virtualTable: "document", using: FTS4()) { t in // t is FTS4TableDefinition
t.column("content")
}
Define Columns
func column(String
) -> FTS4ColumnDefinition Appends a table column.
External Content Tables
func synchronize(withTable: String
) Synchronizes the full-text table with the content of an external table.
FTS4 Options
var compress: String?
The FTS4
compress
option.var content: String?
The FTS4
content
option.var matchinfo: String?
The FTS4
matchinfo
option.var prefixes: Set<Int>?
The FTS4
prefix
option.var tokenizer: FTS3TokenizerDescriptor?
The virtual table tokenizer.
var uncompress: String?
The FTS4
uncompress
option.