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
0a8ac5cb05
commit
bed63b55fe
1 file changed
+8
@@ -98,6 +98,14 @@ let documents = Document.matching(pattern).fetchAll(db)
|
||||
It only requires a tokenization method that matches the low-level `xTokenize` C function documented at https://www.sqlite.org/fts5.html#custom_tokenizers. We'll discuss it more when describing custom tokenizers.
|
||||
|
||||
```swift
|
||||
typealias FTS5TokenCallback = @convention(c) (
|
||||
_ context: UnsafeMutableRawPointer?,
|
||||
_ flags: Int32,
|
||||
_ pToken: UnsafePointer<Int8>?,
|
||||
_ nToken: Int32,
|
||||
_ iStart: Int32,
|
||||
_ iEnd: Int32) -> Int32
|
||||
|
||||
protocol FTS5Tokenizer : class {
|
||||
func tokenize(
|
||||
context: UnsafeMutableRawPointer?,
|
||||
|
||||
Reference in new issue
Block a user