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

13 lines
512 B
Bash
Raw Permalink Normal View History

2022-04-09 02:46:54 +08:00
#!/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