Repository navigation
Conversation
|
This is a fun idea! Unfortunately there is a problem with github.com/mattn/go-sqlite3 as it requires CGO. We build rclone without CGO support to maximise portability. It does get built with CGO support on Windows and macOS to use It looks like There are alternatives to github.com/mattn/go-sqlite3
However rclone does include a very powerful built in database lib/kv which is based on https://pkg.go.dev/go.etcd.io/bbolt If you re-worked your db to use that package then it would be easy to merge. Another idea is you keep this as a plugin: https://pkg.go.dev/github.com/rclone/[email protected]/lib/plugin I'll run the CI now and we can see what blows up. |
|
https://github.com/ncruces/go-sqlite3 is also an option. It uses the WASM build of sqlite. |
|
@ncw thanks for the great feedback! |
|
I ended up using "ncruces/go-sqlite3" because "modernc.org/sqlite" didn't behave well |
|
@ncw can you please run ci again? |
|
@marcelowa shall we close this in favour of #8445 ? |
|
bolt is go-only format. It's not equal replacement for sqlite3 that is supported worldwide. |
What is the purpose of this change?
Add a new backend: SQLite
Checklist