Revision 9086
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/db.sh | ||
---|---|---|
72 | 72 |
echo_func |
73 | 73 |
mk_table_esc |
74 | 74 |
local query="${query:-SELECT * FROM $table_esc ${limit:+LIMIT $limit }}" |
75 |
query="$(rtrim "$query")" |
|
75 | 76 |
local pg_copy_format="${pg_copy_format-CSV HEADER}" |
76 | 77 |
|
77 | 78 |
psql "$@" <<<"COPY ($query) TO STDOUT $pg_copy_format;" |
Also available in: Unified diff
lib/sh/db.sh: pg_export(): rtrim $query