parent
44d6661496
commit
ef4ec60ad6
1 changed files with 7 additions and 1 deletions
|
@ -148,6 +148,9 @@ run_client() {
|
||||||
if [ -d "/Applications/Sequel Ace.app" ] && [ "${USE_CLI}" != true ]
|
if [ -d "/Applications/Sequel Ace.app" ] && [ "${USE_CLI}" != true ]
|
||||||
then
|
then
|
||||||
open "mysql://$2:$3@${SQL_PROXY_HOST}:6033/${4}" -a "Sequel Ace"
|
open "mysql://$2:$3@${SQL_PROXY_HOST}:6033/${4}" -a "Sequel Ace"
|
||||||
|
elif [ -d "/Applications/TablePlus.app" ] && [ "${USE_CLI}" != true ]
|
||||||
|
then
|
||||||
|
open "mysql://$2:$3@${SQL_PROXY_HOST}:6033/${4}" -a "TablePlus"
|
||||||
elif which mysql >/dev/null 2>&1
|
elif which mysql >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
mysql --protocol=TCP -u "$2" -p"$3" -h "${SQL_PROXY_HOST}" "${4:+-D$4}" -P 6033
|
mysql --protocol=TCP -u "$2" -p"$3" -h "${SQL_PROXY_HOST}" "${4:+-D$4}" -P 6033
|
||||||
|
@ -156,7 +159,10 @@ run_client() {
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = 'postgres' ]
|
elif [ "$1" = 'postgres' ]
|
||||||
then
|
then
|
||||||
if which psql >/dev/null 2>&1
|
if [ -d "/Applications/TablePlus.app" ] && [ "${USE_CLI}" != true ]
|
||||||
|
then
|
||||||
|
open "postgresql://$2:$3@${SQL_PROXY_HOST}:6033/${4:-postgres}" -a "TablePlus"
|
||||||
|
elif which psql >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
psql "postgresql://$2:$3@${SQL_PROXY_HOST}:6033/${4:-postgres}"
|
psql "postgresql://$2:$3@${SQL_PROXY_HOST}:6033/${4:-postgres}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue