this application Architecture
- golang
- postgresql
- k8s
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
build up
# docker-compose up -d --build
make build
create database
# make database simple_bank
make createdb
migrations
# docker-compose exec migrate bash -c 'migrate -path ./migrate -database "{DATABASE_ENGINE}://{POSTGRES_USER}:{POSTGRES_PASSWORD}@db:{PORT}/{DATABASE_NAME}?sslmode=disable" -verbose up'
make migrate-up
sql-builder
# cd ./db && sqlc generate && cd -
make sqlc
test-coverage
make test