Skip to content

Commit 88cc975

Browse files
authored
Extract initialisation SQL into separate file (#435)
This makes it easier to edit normally. Also added a rule to `make format` which will use `npx sql-formatter` to format the file.
1 parent c35070a commit 88cc975

File tree

3 files changed

+340
-346
lines changed

3 files changed

+340
-346
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ clean:
99
format:
1010
# Format JSON schema
1111
docker run --rm -v $$PWD/schema.json:/mnt/schema.json node:alpine npx prettier /mnt/schema.json --parser json --tab-width 2 --single-quote --trailing-comma all --no-semi --arrow-parens always --print-width 120 --write
12+
docker run --rm -v $$PWD/pkg/state/init.sql:/mnt/init.sql node:alpine npx sql-formatter -l postgresql -o /mnt/init.sql /mnt/init.sql
1213

1314
generate: format
1415
# Generate the types from the JSON schema

0 commit comments

Comments
 (0)