interagent / pliny

An opinionated toolkit for writing excellent APIs in Ruby.
MIT License
802 stars 73 forks source link

Fix pg_dump call #350

Open furkansahin opened 1 year ago

furkansahin commented 1 year ago

The pg_dump call takes database url and the file name as arguments but it doesn't escape them. When the file name contains &, it causes a failure on the connection. Also, the dump should fail fast when the pg_dump call is not successful.