blob: a1fabae1f60fdc3d5579723ff45e8b2233bf7cc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
.PHONY: build
build:
docker compose build
.PHONY: up
up:
docker compose up -d
.PHONY: down
down:
docker compose down
.PHONY: psql
psql: up
docker compose exec db psql --user=postgres albatross
.PHONY: sqldef-dryrun
sqldef-dryrun: down build
docker compose up -d db
docker compose run --no-TTY tools psqldef --dry-run < ./backend/schema.sql
.PHONY: sqldef
sqldef: down build
docker compose up -d db
docker compose run --no-TTY tools psqldef < ./backend/schema.sql
.PHONY: sqlc
sqlc:
cd backend; make sqlc
|