Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.93 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.93 KB

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