Closed Luminqi closed 2 days ago
From the document of SQLite: https://www.sqlite.org/fts3.html, the way to register a custom tokenizer is executing a sql:
SELECT fts3_tokenizer(<tokenizer-name>, <sqlite3_tokenizer_module ptr>)
I am stuck on how to provide the second parameter, which is a buffer storing the pointer to the tokenizer. How can this be done in Node.js?
Find a solution:
loadExtension
I am not sure if this is the best solution.
From the document of SQLite: https://www.sqlite.org/fts3.html, the way to register a custom tokenizer is executing a sql:
SELECT fts3_tokenizer(<tokenizer-name>, <sqlite3_tokenizer_module ptr>)
I am stuck on how to provide the second parameter, which is a buffer storing the pointer to the tokenizer. How can this be done in Node.js?