18 lines
641 B
Markdown
18 lines
641 B
Markdown
# go-sqlite3-fts5
|
|
|
|
This is a fork from [github.com/knaka/go-sqlite3-fts5](https://github.com/knaka/go-sqlite3-fts5)
|
|
|
|
I added code from [github.com/siyuan-note/sqlite-fts5-siyuan-tokenizer](https://github.com/siyuan-note/sqlite-fts5-siyuan-tokenizer) to support Chinese word segmentation.
|
|
|
|
Importing this package will enable the FTS5 extension with [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) package.
|
|
|
|
## Usage
|
|
|
|
```go
|
|
import _ "trle5.xyz/go-sqlite3-fts5"
|
|
```
|
|
|
|
## Update the source code
|
|
|
|
`go generate` will fetch the FTS5 source code of the same version as the go-sqlite3 package which is specified in the go.mod file.
|