Revision 11850
Added by Aaron Marcuse-Kubitza almost 11 years ago
lib/sh/db.sh | ||
---|---|---|
357 | 357 |
) |
358 | 358 |
} |
359 | 359 |
|
360 |
pg_table_exists() # usage: [schema=...] [table=...] pg_table_exists
|
|
360 |
pg_table_exists() # usage: [schema=...] table=... pg_table_exists
|
|
361 | 361 |
{ |
362 | 362 |
echo_func; : "${table:?}"; mk_table_esc |
363 | 363 |
psql <<<"SELECT NULL FROM $table_esc LIMIT 0" |
Also available in: Unified diff
fix: lib/sh/db.sh: pg_table_exists(): usage: documented that $table is actually required for this function