FTS3

public struct FTS3 : VirtualTableModule

FTS3 lets you define fts3 virtual tables.

// CREATE VIRTUAL TABLE document USING fts3(content)
try db.create(virtualTable: "document", using: FTS3()) { t in
    t.column("content")
}
  • Options for Latin script characters. Matches the raw remove_diacritics tokenizer argument.

    See https://www.sqlite.org/fts3.html

    See more

    Declaration

    Swift

    public enum Diacritics
  • Creates a FTS3 module suitable for the Database create(virtualTable:using:) method.

    // CREATE VIRTUAL TABLE document USING fts3(content)
    try db.create(virtualTable: "document", using: FTS3()) { t in
        t.column("content")
    }
    

    Declaration

    Swift

    public init()