Skip to content

RinwaOwuogba/ent-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updating Schema

  • update schema
  • generate updated code for db operations, run:
go generate ./db/ent

Migration

  • Create migration files by running:
go run db/make-migrations.go [migration name]
  • Apply migration using golang-migrate. in project_root run:
migrate -source 'file://db/migrations' -database 'postgresql://postgres:postgres@127.0.0.1/test_db?sslmode=disable' up

References

Getting started with Ent:

Migration:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages