The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

list_bubble_databases 527 B

5 yıl önce
5 yıl önce
1234567891011121314151617181920
  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}