summaryrefslogtreecommitdiff
path: root/insert_book.sh
blob: cd7c782fdce9ebbd8e5671b8984c7b67a77f9ac3 (plain)
1
2
3
4
5
6
#!/bin/bash

[[ -z $1 ]] && echo "Usage: ./insert_book <title>" && exit 1

docker-compose exec db psql -U tracking -d tracking -c \
	"INSERT INTO book (title, completed) VALUES ('$1', FALSE)"