- Added: Safe SQL delimiter generation. Checks that the contained query does not contain the delimiter rather than using hard-coded slash or semicolon.
- Added: Invokes informative
E_USER_DEPRECATED
messages when using deprecated configuration options. - Added: Supports dumping events.
- Added: Checks MySQL version before dumping triggers or events.
- Changed: All configuration values are now strictly type strict.
- Fixed: Rah\Danpu\Dump::__call() now properly requires $args, rather than having the second argument optional.
- Changed: Check that the source file exists before trying to import it.
- Started testing the project on HHVM; passes all tests.
- Fixed: Rah\Danpu\Dump::__construct() $config argument. Now properly uses passed Rah\Danpu\Config instances.
- Added: Test for test code coverage.
- Added: Rah\Danpu\BaseInterface.
- Added: Support for filtering tables by prefix.
- Added: Option to get configuration values from the Rah\Danpu\Dump class.
- Added: Generated dump file now ends to linefeed.
- Added: Option to disable auto-commit, foreign and unique key checks. These can be used to generated SQL dumps that import faster to InnoDB tables.
- Changed: Writes the DSN to the dump header instead of the old database property and host.
- Changed: Dump setter and Config values inheritance. Workers now require instance of Dump, but Dump can be fed a different Config instance. This makes sure the methods implemented in the setter, Dump, are available in the consumer class. Extending Config class still works as previously, just pass your Config through Dump to the consumer.
- Changed: Rewritten tests.
- Changed: Improved PHPdoc blocks.
- Changed: Adopted full PSR-0 and PSR-2 standards compliance.
- Fixed: Database table ignoring.
- Fixed: Importer's decompressor.
- Fixed: Table locking doesn't generate errors if the database doesn't have tables.
- Added: Support for triggers and views.
- Added: Importer supports delimiter keyword.
- Changed: Any SQL error is thrown as exception.
- Fixed: Makes sure creating the temporary file was successful.
- Added: Adds completed on line to the dump file.
- Added: Option to only dump table structures and no rows.
- Suggest Zlib, but do not require. Zlib isn't required if the file isn't compressed.
- Fixed: Define Rah\Danpu\Base::$pdo property as protected.
- Fixed: Can pass instance of Rah\Danpu\Config to a worker. Rah\Base now correctly hints Rah\Danpu\Config instead of Rah\Danpu\Dump.
- Fixed: Errors in the given examples. The Rah\Danpu\Dump::temp() should be Rah\Danpu\Dump::tmp().
- Added: Rah\Danpu\Config class. Allows creating dump configs by extending.
- Added: Rah\Danpu\Dump now validates the given configuration option names.
- Added: PHPunit tests and Travis.
- Added: Database connection details are set using a DSN string. Deprecates Rah\Danpu\Dump::$db and Rah\Danpu\Dump::$host.
- Fixed: Catch PDOExcepiton.
- Added: Option to ignore database tables.
- Fixed: Error in the composer.json.
- Initial release.