The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list_bubble_databases 529 B

4 년 전
4 년 전
123456789101112131415161718192021
  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. #
  6. # List bubble databases
  7. #
  8. # Usage:
  9. #
  10. # list_bubble_databases [db-match]
  11. #
  12. # db-match only list databases whose names include this value. default is bubble
  13. #
  14. #
  15. SCRIPT="${0}"
  16. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  17. DB_USER=$(whoami)
  18. DB_BASENAME="${1:-bubble}"
  19. echo "select datname from pg_database" | psql -qt -U ${DB_USER} | tr -d ' ' | grep ${DB_BASENAME}