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