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)"