FTS5

FTS5 lets you define fts5 virtual tables.

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

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