chore(dev): setup sqlc and atlas
This commit is contained in:
parent
1ebb4936ea
commit
2efa42651f
6 changed files with 58 additions and 1 deletions
23
justfile
Normal file
23
justfile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue