4 ms·
use go-sqlite3 to work with sqlite3 is one choice. https://github.com/etcd-io/bbolt https://github.com/etcd-io/bbolt is another pure go option. cznic seems li
by synergy20 5y ago
use go-sqlite3 to work with sqlite3 is one choice.
https://github.com/etcd-io/bbolt https://github.com/etcd-io/bbolt is another pure go option.
cznic seems like an alternative to bbolt. nice to have some options.
- svnpenn 5y agoBolt is great, here is similar option: https://github.com/genjidb/genji https://github.com/genjidb/genji
- synergy20 5y agoAPI not stable yet and it's a kv database, similar to bbolt/bolt. as far as sqlite3 is concerned, pure-go option we indeed only have this cznic available, which is nice.
- svnpenn 5y ago> it's a kv database, similar to bbolt/bolt Its pretty clear you dont know what youre talking about. It literally says its SQL in the title, you know that big bar at the top of your screen: > Document-oriented, embedded SQL database
- barsonme 5y agogo-sqlite3 is not pure Go. It is a Go wrapper around the SQLite amalgamation.
- ginko 5y agoSo why would you want pure Go? AFAIK Go is significantly slower than C. There's of course safety issues with C, but sqlite is one of the most rigorously tested sw packages out there.
- synergy20 5y agoso you can ship one binary contains everything. for go-sqlite3 you still need native sqlite3 preinstalled on the OS, which is OK for developers but not for many ordinary users.
- eatonphil 5y agobbolt is a key-value store and this package is a SQL database so they aren't really the same thing.
- synergy20 5y agoyou're right, for sql bblot is not a good option