Skip to content

kineticengines/gormgx

Repository files navigation

Gormgx

Test Status Watchers Branches Issues Open Issues Closed Issues License

Go Report Card


A simple database migrations utility for Gorm

Active development in progress

Example

gormgx.go -v make-migrations

Gotchas

  • Models specifications must be in one (1) go file. Preferably models.go
  • Override Foreign Key must be of the form ModelNameRefer.
  • Foreign key must be Interface{}. Gormgx will extract the extact model from the tags

Environment

export DATABASE_DSN="host=localhost user=gorm password=gorm dbname=gorm port=9920 sslmode=disable TimeZone=Africa/Nairobi"

Notice

Gormgx is still in development and not ready for productive use yet

Releases

No releases published

Packages

No packages published