X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=sql%2Fbuilder.sh;h=7e021dbc5bea4554ff9efdc40628d74255fd01d4;hb=46c25abf38a8b51b4493421c1e13a00735274d75;hp=221bd870b9b6715e63c2a86d401ab5f0cc81f567;hpb=9cbf3bfaad0cad7feaf6413eb53df0a1475c6303;p=brisk.git diff --git a/sql/builder.sh b/sql/builder.sh index 221bd87..7e021db 100755 --- a/sql/builder.sh +++ b/sql/builder.sh @@ -65,8 +65,10 @@ elif [ "$1" = "rebuild" ]; then echo "-- MESG: build start" ; one_or_all $2 | grep -iv '^drop' ; echo "-- MESG: build end" ; ) \ | sqlexe $sht elif [ "$1" = "psql" ]; then + shift psql -h $DBHOST -U $DBUSER $DBBASE $@ elif [ "$1" = "piped" ]; then + shift psql -h $DBHOST -U $DBUSER $DBBASE -t -q -A -F '|' $@ elif [ "$1" = "dump" ]; then if [ $# -eq 1 ]; then