Revision 13347
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/local.sh | ||
---|---|---|
82 | 82 |
)|psql__db_sh "$@" |
83 | 83 |
} |
84 | 84 |
|
85 |
public_schema_exists() { log-- echo_func; schema=public pg_schema_exists; } |
|
86 |
|
|
87 | 85 |
pg_dump_local() { echo_func; use_local; pg_dump "$@"; } |
88 | 86 |
|
89 | 87 |
|
trunk/lib/sh/db.sh | ||
---|---|---|
405 | 405 |
ignore_e=3 stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()" |
406 | 406 |
} |
407 | 407 |
|
408 |
public_schema_exists() { log-- echo_func; schema=public pg_schema_exists; } |
|
409 |
|
|
408 | 410 |
pg_require_schema() # usage: schema=... pg_require_schema |
409 | 411 |
{ |
410 | 412 |
echo_func; : "${schema:?}" |
Also available in: Unified diff
lib/sh/local.sh: public_schema_exists(): moved to lib/sh/db.sh since this no longer depends on BIEN-specific configurations