Revision 9074
Added by Aaron Marcuse-Kubitza over 11 years ago
local.sh | ||
---|---|---|
13 | 13 |
|
14 | 14 |
#### make |
15 | 15 |
|
16 |
root_make () { echo_func; make --directory="$root_dir" "$@"; }
|
|
16 |
root_make() { echo_func; make --directory="$root_dir" "$@"; } |
|
17 | 17 |
|
18 | 18 |
#### connection vars |
19 | 19 |
|
... | ... | |
28 | 28 |
|
29 | 29 |
: "${postgres_compat=1}" |
30 | 30 |
|
31 |
mysqldump_local () { echo_func; use_local_remote; mysqldump_diffable "$@"; }
|
|
31 |
mysqldump_local() { echo_func; use_local_remote; mysqldump_diffable "$@"; } |
|
32 | 32 |
|
33 | 33 |
### PostgreSQL |
34 | 34 |
|
35 |
psql () # usage: [file=...] [dir=...] self
|
|
35 |
psql() # usage: [file=...] [dir=...] self |
|
36 | 36 |
{ |
37 | 37 |
echo_func |
38 | 38 |
if test "$file"; then |
... | ... | |
53 | 53 |
env no_search_path=1 "$psql_cmd" --output /dev/fd/4 "$@" 4>&1 >&2 |
54 | 54 |
} |
55 | 55 |
|
56 |
public_schema_exists () { psql_script_vegbien </dev/null 2>/dev/null; }
|
|
56 |
public_schema_exists() { psql_script_vegbien </dev/null 2>/dev/null; } |
|
57 | 57 |
|
58 | 58 |
fi |
Also available in: Unified diff
*{.sh,run}: removed extra space between function name and (), which is apparently not needed even though `help function` includes it. this greatly improves readability, including when function names are pasted into commit messages!