chore(dev): setup sqlc and atlas

This commit is contained in:
Bastien Riviere 2024-01-29 18:45:50 +01:00
parent 1ebb4936ea
commit 2efa42651f
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
6 changed files with 58 additions and 1 deletions

23
justfile Normal file
View file

@ -0,0 +1,23 @@
alias b := build
alias r := run
alias l := lint
build:
go build .
run:
go run .
lint:
golangci-lint run
sqlc:
sqlc generate
sqlc vet
gen-migration NAME:
atlas migrate diff {{NAME}} --env local
atlas migrate apply --env local
migrate:
atlas migrate apply --env local