bigbluebutton-Github/bbb-common-web/psql.sh

13 lines
512 B
Bash
Executable File

#!/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