mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Documentation
This commit is contained in:
1 parent
0187a0cace
commit
45e2819694
1 file changed
+4
-1
@@ -239,15 +239,18 @@ Arguments are provided when the virtual table is created:
|
||||
|
||||
```swift
|
||||
// CREATE VIRTUAL TABLE documents USING fts5(
|
||||
// tokenize='custom'
|
||||
// tokenize='custom',
|
||||
// content
|
||||
// )
|
||||
try db.create(virtualTable: "documents", using: FTS5()) { t in
|
||||
// Wraps the default unicode61
|
||||
t.tokenizer = MyTokenizer.tokenizerDescriptor()
|
||||
t.column("content")
|
||||
}
|
||||
|
||||
// CREATE VIRTUAL TABLE documents USING fts5(
|
||||
// tokenize='custom ascii'
|
||||
// content
|
||||
// )
|
||||
try db.create(virtualTable: "documents", using: FTS5()) { t in
|
||||
// Wraps ascii
|
||||
|
||||
Reference in new issue
Block a user