Revision 10887
Added by Aaron Marcuse-Kubitza about 11 years ago
db.sh | ||
---|---|---|
110 | 110 |
fi # load new aliases |
111 | 111 |
if self_being_included; then |
112 | 112 |
|
113 |
function mysql() # usage: [output_data=1] [data_only=1] [log_queries=] mysql ...
|
|
113 |
function mysql() # usage: [database=...] [data_only=1] [log_queries=] mysql ...
|
|
114 | 114 |
{ |
115 | 115 |
echo_func; kw_params output_data data_only query_verbosity |
116 | 116 |
if test "$data_only"; then local output_data="${output_data-1}"; fi |
... | ... | |
165 | 165 |
} |
166 | 166 |
|
167 | 167 |
mysql_export() # does not support CSV |
168 |
# caller usage: {query=... | table=... [cols=...] [filter=...]} mysql_export |
|
168 |
# caller usage: [database=...] {query=... | table=... [cols=...] [filter=...]} \ |
|
169 |
# mysql_export |
|
169 | 170 |
# cmd line usage: [limit=...] caller |
170 | 171 |
{ |
171 | 172 |
echo_func |
Also available in: Unified diff
lib/sh/db.sh: mysql(), mysql_export(): usage: added database=...