added template, fixed typos, added interval querying
This commit is contained in:
parent
7e62f366e7
commit
ae0b2b2890
10 changed files with 191 additions and 69 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
.PHONY: postgres adminer migrate
|
||||
|
||||
postgres:
|
||||
docker run --rm -ti --network host -e POSTGRES_PASSWORD=secret postgres
|
||||
|
||||
adminer:
|
||||
docker run --rm -ti --network host adminer
|
||||
|
||||
reflex:
|
||||
reflex -s go run cmd/goddit/main.go
|
||||
|
||||
migrate:
|
||||
migrate -source file://migrations \
|
||||
-database postgres://postgres:secret@localhost/postgres?sslmode=disable up
|
||||
|
||||
migrate-down:
|
||||
migrate -source file://migrations \
|
||||
-database postgres://postgres:secret@localhost/postgres?sslmode=disable down
|
Reference in a new issue