15 lines
420 B
Makefile
15 lines
420 B
Makefile
|
include .env
|
||
|
|
||
|
migrateup:
|
||
|
migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" -verbose up
|
||
|
|
||
|
migratedown:
|
||
|
migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" -verbose down
|
||
|
|
||
|
sqlc:
|
||
|
sqlc generate
|
||
|
|
||
|
test:
|
||
|
go test -v -cover ./...
|
||
|
|
||
|
.PHONY: migrateup migratedown sqlc
|