projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
step_get moved into User class (as static function)
[brisk.git]
/
sql
/
builder.sh
diff --git
a/sql/builder.sh
b/sql/builder.sh
index
0417a05
..
221bd87
100755
(executable)
--- a/
sql/builder.sh
+++ b/
sql/builder.sh
@@
-65,7
+65,9
@@
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
echo "-- MESG: build start" ; one_or_all $2 | grep -iv '^drop' ; echo "-- MESG: build end" ; ) \
| sqlexe $sht
elif [ "$1" = "psql" ]; then
- psql -h $DBHOST -U $DBUSER $DBBASE
+ psql -h $DBHOST -U $DBUSER $DBBASE $@
+elif [ "$1" = "piped" ]; then
+ psql -h $DBHOST -U $DBUSER $DBBASE -t -q -A -F '|' $@
elif [ "$1" = "dump" ]; then
if [ $# -eq 1 ]; then
pg_dump -a --inserts -h $DBHOST -U $DBUSER $DBBASE
elif [ "$1" = "dump" ]; then
if [ $# -eq 1 ]; then
pg_dump -a --inserts -h $DBHOST -U $DBUSER $DBBASE
@@
-88,6
+90,7
@@
else
echo " ./builder build"
echo " ./builder rebuild"
echo " ./builder psql"
echo " ./builder build"
echo " ./builder rebuild"
echo " ./builder psql"
+ echo " ./builder piped"
echo " ./builder add <filesql>"
echo " ./builder dump [dumpfile]"
echo " ./builder dumpall [dumpfile]"
echo " ./builder add <filesql>"
echo " ./builder dump [dumpfile]"
echo " ./builder dumpall [dumpfile]"