The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

21 строка
527 B

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. # List bubble databases
  6. #
  7. # Usage:
  8. #
  9. # list_bubble_databases [db-match]
  10. #
  11. # db-match only list databases whose names include this value. default is bubble
  12. #
  13. #
  14. SCRIPT="${0}"
  15. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  16. DB_USER=$(whoami)
  17. DB_BASENAME="${1:-bubble}"
  18. echo "select datname from pg_database" | psql -qt -U ${DB_USER} | tr -d ' ' | grep ${DB_BASENAME}