kineticengines / gormgx

A simple database migrations utility for Gorm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple database migrations utility for Gorm

License:MIT License


Languages

Language:Go 96.2%Language:Makefile 3.5%Language:Shell 0.3%