joe-at-startupmedia / pmon3

Golang Production Process Manager
10 stars 0 forks source link

replace go-sqlite with modernc.org/sqlite #19

Closed joe-at-startupmedia closed 6 months ago

joe-at-startupmedia commented 6 months ago

Currently sqlite is being used as the embeddable database. The problem is that it also requires CGO_ENABLED, reducing portability.

May 01 03:28:58 startup-dev-web pmond[25901]: panic: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

The following repo offers sqlite compatibility without CGO_ENABLED and boasts comparable performance: https://gitlab.com/cznic/sqlite

Writing custom drivers for gorm: https://gorm.io/docs/write_driver.html

See if the following works: https://github.com/julen8/sqlite

https://github.com/search?q=gorm+driver+sqlite&type=repositories