Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlboiler-goose-sample

Install Dependency

  • psql 11 client
brew install postgresql
psql --version
psql (PostgreSQL) 11.5

GOOSE

GO111MODULE=off go get -u github.com/pressly/goose/cmd/goose
  • build postgres image
make build-test-db
  • create postgres server
make run-test-db
  • migration

Apply all available migrations.

cd db
./goose up
  • roll back
cd db
./goose down

SQLBOILER

  • generate
cd db
./sqlboiler
  • go test
cd db
go test ./dbmodels

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址