GORM Installation
Install the addon with:
keel add gormManual install:
go get github.com/slice-soft/ss-keel-gormWhat keel add gorm generates
Section titled “What keel add gorm generates”- Adds
github.com/slice-soft/ss-keel-gormto dependencies. - Creates
cmd/setup_gorm.go. - Injects
db := setupGorm(app, appLogger)intocmd/main.go. - Adds database property keys and
.envexamples.
Generated config keys:
database.engine=${DATABASE_ENGINE:sqlite}database.url=${DATABASE_URL:./app.db}Generated env examples:
DATABASE_ENGINE=sqliteDATABASE_URL=./app.dbThe generated bootstrap also registers the built-in health checker so /health reflects database connectivity.