larkinwhitaker / laravel-db-backup

Laravel 5 Package for easily backing up and restoring databases with command line tools.
http://keystrokecreative.com/
15 stars 17 forks source link

Adding multi line export on dump procedure for MySQL and PostgreSQL #6

Open prometherion opened 8 years ago

prometherion commented 8 years ago

Hello, I implemented a raw improvement to handle some options on dump phase (only on MySql and PostgreSql: I'm not familiar with sqlite). Passing an associative array to contractor is possible to append options such as extended-insert: it allows to avoid chunk of insert on dump, useful in case of database backup for multi-tenant database applications (such as software-as-a-services). I know file is bigger and not transactional but it ease the versioning. Hope it could be useful to others, maybe with other contributions! :)

Apologies if I did some mistakes: it's my second time I'm contributing to a GitHub repo.