aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-21 18:12:49 +0900
committernsfisis <nsfisis@gmail.com>2024-07-21 18:12:49 +0900
commit2512da7ca57dc4c52900417a50daf4f6f2f74054 (patch)
tree6a4921a9fcd2fe774171795425ba04889c9c8a49 /Makefile
parente3373eb48b8cd5eef61a59d8ff590db184612294 (diff)
downloadphperkaigi-2025-albatross-2512da7ca57dc4c52900417a50daf4f6f2f74054.tar.gz
phperkaigi-2025-albatross-2512da7ca57dc4c52900417a50daf4f6f2f74054.tar.zst
phperkaigi-2025-albatross-2512da7ca57dc4c52900417a50daf4f6f2f74054.zip
add sqldef and sqlc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6cd9091..f8ef7b8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,3 +9,15 @@ up:
.PHONY: down
down:
docker compose down
+
+.PHONY: psql
+psql: up
+ docker compose exec db psql --user=postgres albatross
+
+.PHONY: sqldef-dryrun
+sqldef-dryrun:
+ docker compose run --no-TTY tools psqldef --dry-run < ./backend/schema.sql
+
+.PHONY: sqldef
+sqldef:
+ docker compose run --no-TTY tools psqldef < ./backend/schema.sql