Project

General

Profile

« Previous | Next » 

Revision 9231

: use new `params` in all functions that have keyword params, in order to remove their vars from the environment. note that functions that use $? (such as die()) must save it *before running params, because params will overwrite $?.

View differences:

db.sh
59 59

  
60 60
mysql() # usage: [output_data=1] mysql ...
61 61
{
62
	echo_func
62
	echo_func; params output_data
63 63
	set_database
64 64
	
65 65
	set -- ${database:+--database="$database" }--column-names "$@"
......
108 108

  
109 109
mysqldump() # usage: [schema=1 | data=1] mysqldump db [table...]
110 110
{
111
	echo_func
111
	echo_func; params schema data
112
	
112 113
	mysql_cmd ${database:+--databases "$database" --tables } \
113 114
--quick --lock-tables=false --set-charset \
114 115
${postgres_compat:+--compatible=postgresql --add-locks=false }\

Also available in: Unified diff