yandex-qatools / postgresql-embedded

Embedded PostgreSQL Server
Other
493 stars 90 forks source link

Support exporting dumps with custom user-defined CLI args #162

Closed rm3l closed 5 years ago

rm3l commented 5 years ago

Hi there!

My use case is to export without owner or privileges statements, and also to export to a directory instead of a SQL file. But I notice the PostgresProcess#export*ToFile utility methods do not support such capabilities, unlike what is done in the PostgresProcess#importFromFileWithArgs method.

This PR attempts to generalize that idea by supporting any user-defined custom arguments, provided they are compliant with the already existing default options passed to pg_dump.

Thanks.

rm3l commented 5 years ago

Closing since the changes I proposed here are actually covered by #151 (which is yet to be merged)