FTS3TableDefinition
public final class FTS3TableDefinition
The FTS3TableDefinition class lets you define columns of a FTS3 virtual table.
You don’t create instances of this class. Instead, you use the Database
create(virtualTable:using:)
method:
try db.create(virtualTable: "document", using: FTS3()) { t in // t is FTS3TableDefinition
t.column("content")
}
-
The virtual table tokenizer
try db.create(virtualTable: "document", using: FTS3()) { t in t.tokenizer = .porter }
See https://www.sqlite.org/fts3.html#creating_and_destroying_fts_tables
Declaration
Swift
public var tokenizer: FTS3TokenizerDescriptor?
-
Appends a table column.
try db.create(virtualTable: "document", using: FTS3()) { t in t.column("content") }
Declaration
Swift
public func column(_ name: String)
Parameters
name
the column name.