Files
query-orchestration/scripts/database.yml
T
Michael McGuinness 0ebb8a21a1 Merged in bugfix/cleanup (pull request #10)
Clean Up Testing and Linting

* somescriptcleanup

* mostgolangci

* deplatest

* imageversions

* usingscratch

* movedqueuefrtesting

* finishedunittesting

* linting

* taskfilecontext
2025-01-10 11:12:03 +00:00

28 lines
556 B
YAML

---
# https://taskfile.dev
version: '3'
vars:
MIGRATIONS: "database/migrations"
tasks:
generate:
cmds:
- |
task compose:up:bg
task db:mig:run
sqlc generate --file ../sqlc.yml
lint:
cmds:
- sqlc vet --file ../sqlc.yml
mig:create:
cmds:
- |
read -p "Migration Name: " name
test -z "$name" && echo "Error: Name is required." && exit 1
migrate create -ext sql -dir {{.MIGRATIONS}} $name
mig:run:
cmds:
- migrate -path {{.MIGRATIONS}} -database {{.DB_URI}} up