Revision 11768
Added by Aaron Marcuse-Kubitza about 11 years ago
db.sh | ||
---|---|---|
357 | 357 |
) |
358 | 358 |
} |
359 | 359 |
|
360 |
pg_table_exists() # usage: [schema=...] [table=...] pg_table_exists |
|
361 |
{ |
|
362 |
echo_func; : "${table:?}"; mk_table_esc |
|
363 |
psql <<<"SELECT * FROM $table_esc LIMIT 0" |
|
364 |
} |
|
365 |
|
|
360 | 366 |
fi |
Also available in: Unified diff
lib/sh/db.sh: added pg_table_exists()