FTS4
public struct FTS4 : VirtualTableModule
FTS4 lets you define fts4
virtual tables.
// CREATE VIRTUAL TABLE document USING fts4(content)
try db.create(virtualTable: "document", using: FTS4()) { t in
t.column("content")
}
-
Creates a FTS4 module suitable for the Database
create(virtualTable:using:)
method.// CREATE VIRTUAL TABLE document USING fts4(content) try db.create(virtualTable: "document", using: FTS4()) { t in t.column("content") }
Declaration
Swift
public init()
-
The virtual table module name
Declaration
Swift
public let moduleName: String
-
Reserved; part of the VirtualTableModule protocol.
See Database.create(virtualTable:using:)
Declaration
Swift
public func makeTableDefinition() -> FTS4TableDefinition
-
Reserved; part of the VirtualTableModule protocol.
See Database.create(virtualTable:using:)
Declaration
Swift
public func moduleArguments(for definition: FTS4TableDefinition, in db: Database) -> [String]
-
Reserved; part of the VirtualTableModule protocol.
See Database.create(virtualTable:using:)
Declaration
Swift
public func database(_ db: Database, didCreate tableName: String, using definition: FTS4TableDefinition) throws