bigbluebutton-Github/bbb-common-web/psql.sh
2022-04-08 18:46:54 +00:00

13 lines
512 B
Bash

#!/bin/bash
. .env
echo "================== Help for psql ========================="
echo "\\dt : Describe the current database"
echo "\\d [table] : Describe a table"
echo "\\c : Connect to a database"
echo "\\h : help with SQL commands"
echo "\\? : help with psql commands"
echo "\\q : quit"
echo "Reset the database using the truncate_tables('$POSTGRES_USER') function"
echo "=================================================================="
docker exec -it postgres psql -U $POSTGRES_USER -d bbb