Revision 9235
Added by Aaron Marcuse-Kubitza over 11 years ago
db.sh | ||
---|---|---|
59 | 59 |
|
60 | 60 |
mysql() # usage: [output_data=1] mysql ... |
61 | 61 |
{ |
62 |
echo_func; params output_data |
|
62 |
echo_func; kw_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; params schema data |
|
111 |
echo_func; kw_params schema data
|
|
112 | 112 |
|
113 | 113 |
mysql_cmd ${database:+--databases "$database" --tables } \ |
114 | 114 |
--quick --lock-tables=false --set-charset \ |
Also available in: Unified diff
lib/sh/util.sh: renamed params() to kw_params() to clarify the type of params it handles