Revision 8959
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/local.sh | ||
---|---|---|
27 | 27 |
|
28 | 28 |
: "${postgres_compat=1}" |
29 | 29 |
|
30 |
mysql () |
|
31 |
{ |
|
32 |
echo_func |
|
33 |
echo_run mysql_bien --database="$schema" --verbose "$@" |
|
34 |
} |
|
30 |
mysql () { echo_func; echo_run mysql_bien --database="$schema" --verbose "$@"; } |
|
35 | 31 |
|
36 |
mysqldump_local () |
|
37 |
{ |
|
38 |
echo_func |
|
39 |
use_local_remote; mysqldump_diffable "$@" |
|
40 |
} |
|
32 |
mysqldump_local () { echo_func; use_local_remote; mysqldump_diffable "$@"; } |
|
41 | 33 |
|
42 | 34 |
### PostgreSQL |
43 | 35 |
|
lib/util.sh | ||
---|---|---|
215 | 215 |
EOF |
216 | 216 |
)" |
217 | 217 |
|
218 |
make () |
|
219 |
{ |
|
220 |
echo_func |
|
221 |
stdout2stderr=1 self "$@" |
|
222 |
} |
|
218 |
make () { echo_func; stdout2stderr=1 self "$@"; } |
|
223 | 219 |
|
224 | 220 |
if false; then ## usage: |
225 | 221 |
inline_make 3<<'EOF' |
... | ... | |
302 | 298 |
${password+="$password"} ${database:+--databases "$database" --tables } "$@" |
303 | 299 |
} |
304 | 300 |
|
305 |
mysql () |
|
306 |
{ |
|
307 |
echo_func |
|
308 |
mysql_cmd --verbose "$@" |
|
309 |
} |
|
301 |
mysql () { echo_func; mysql_cmd --verbose "$@"; } |
|
310 | 302 |
|
311 | 303 |
mysql_ANSI () |
312 | 304 |
{ |
Also available in: Unified diff
*{.sh,run}: put functions on one line where possible (and where they are not expected to expand)