13 lines
240 B
Makefile
13 lines
240 B
Makefile
|
|
SQL_FILES := $(wildcard *.sql)
|
||
|
|
|
||
|
|
latest:
|
||
|
|
@FILE=$$(ls -1 *.sql | sort | tail -n 1); \
|
||
|
|
duckdb -f "$$FILE"
|
||
|
|
|
||
|
|
run:
|
||
|
|
@for f in $(SQL_FILES); do duckdb -f $$f; done
|
||
|
|
|
||
|
|
format:
|
||
|
|
@for f in $(SQL_FILES); do sqlfluff format $$f --dialect duckdb; done
|
||
|
|
|