Skip to content

Releases: gocom/danpu

2.7.0

06 Nov 22:38
Compare
Choose a tag to compare

Changes:

  • Fixed: Test suite compatibility on PHP >= 7.2.
  • Added: Create database statement.
  • 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.

Install using Composer:

$ composer require rah/danpu:2.7.0

2.6.2

22 Dec 00:14
Compare
Choose a tag to compare

This is a minor patch update. Changes:

  • 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.

Install using Composer:

$ composer require rah/danpu:2.6.2

2.6.1

18 Dec 14:45
Compare
Choose a tag to compare

This release fixes an issue with Config class' extending. Changes:

  • Fixed: Rah\Danpu\Dump::__construct() $config argument. Now properly uses passed Rah\Danpu\Config instances.
  • Added: Test for test code coverage.

Install using Composer:

$ composer require rah/danpu:2.6.1

2.6.0

16 Dec 14:43
Compare
Choose a tag to compare

This release adds number of new features and adopts full PSR-0 and PSR-2 coding standard compliance. Changes:

  • 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.

Install using Composer:

$ composer require rah/danpu:2.6.0

2.5.0

10 Dec 22:09
Compare
Choose a tag to compare

This release adds support for triggers and views, and fixes some issues. Changes:

  • 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.

Install using Composer:

$ composer require rah/danpu:2.5.0

2.4.0

10 Dec 22:11
Compare
Choose a tag to compare

This release adds support for no-data dumps. Changes:

  • 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.

Install using Composer:

$ composer require rah/danpu:2.4.0

2.3.3

10 Dec 22:16
Compare
Choose a tag to compare

Changes:

  • Suggest Zlib, but do not require. Zlib isn't required if the file isn't compressed.

Install using Composer:

$ composer require rah/danpu:2.3.3

2.3.2

10 Dec 22:15
Compare
Choose a tag to compare

Changes:

  • Fixed: Define Rah\Danpu\Base::$pdo property as protected.

Install using Composer:

$ composer require rah/danpu:2.3.2

2.3.1

10 Dec 22:14
Compare
Choose a tag to compare

Changes:

  • Fixed: Can pass instance of Rah\Danpu\Config to a worker. Rah\Base now correctly hints Rah\Danpu\Config instead of Rah\Danpu\Dump.

Install using Composer:

$ composer require rah/danpu:2.3.1

2.3.0

10 Dec 22:13
Compare
Choose a tag to compare

Changes:

  • 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.

Install using Composer:

$ composer require rah/danpu:2.3.0