Skip to content

Releases: webfactory/slimdump

Raise minimum PHP version to 8.1, allow up-to-date dependencies

18 Jan 16:19
78fce17
Compare
Choose a tag to compare

This version drops support for PHP versions below 8.1 (#107). This allows us to update the dependencies bundled into the .phar version, and allows slimdump to be installed as a Composer dependency in your project alongside current versions of other libraries used (#108).

Fix dumping databases that contain DC2:... column comments with unknown types

18 Jan 13:08
dcae8af
Compare
Choose a tag to compare

What's Changed

  • Fill in dummy types to deal with DC2:... column comments by @mpdude in #102
  • Update to use actions/checkout v4 by @mpdude in #105
  • Update GHA workflows to use current Ubuntu and tools versions by @mpdude in #106

Full Changelog: 1.15.0...1.15.1

Honor the connection character set selected through a DSN parameter

14 Aug 16:36
0abfaaa
Compare
Choose a tag to compare

What's Changed

  • Dump the character set as specified for the connection by @mpdude in #101

Full Changelog: 1.14.1...1.15.0

Fix that `TRIGGER` definitions need to come _after_ data for a table

21 Dec 10:49
481b94a
Compare
Choose a tag to compare

Since the addition of the CSV output mode in the 1.14.0 release, TRIGGER definitions were (unintentionally) dumped before the data for a table. In previous releases, they followed the INSERT statements.

Creating triggers before loading the data may be a problem when the trigger fires and not all tables have been created or locked at that time, so this change was reverted (#100).

What's Changed

Full Changelog: 1.14.0...1.14.1

New CSV output mode

16 Sep 10:10
6d6bab7
Compare
Choose a tag to compare

The main new feature of this release is a new output mode for CSV files (#92).

The new command option --output-csv=... enables CSV output mode, and must be given the path to a directory. The output mode will create .csv files in the given directory, named according to the dumped tables.

This output format does not support output redirection from stdout as the default MySQL SQL format does.

CSV files will be created only for tables that contain data. In other words, schema type dumps will skip the table in question. Also, dumping views/triggers makes no sense for CSV files, they will be skipped as well.

How to best write binary (BLOB) data and/or NULL values in CSV files is probably highly controversial. For now, we'll just go with the 0x... hex literals supported by MySQL. Maybe having binary data in CSV files is not a sane idea in the first place.

Also, the exact details of the CSV format might still change, so consider this feature as experimental.

Full list of changes

  • Run GitHub Actions Workflows on Ubuntu 20.04 @mpdude in #87
  • Bump dependencies, update test matrix by @mpdude in #91
  • Remove DumperTest by @mpdude in #90
  • Refactor output-format related code into a dedicated class + interface by @FabianSchmick in #88
  • Refactor the SlimdumpCommand, DumpTask and Dumper classes by @mpdude in #93
  • Remove the Dumper::keepalive() method by @mpdude in #94
  • Ensure PHP 7.2 compatibility for the composer.lock file by @mpdude in #95
  • Implement CSV output mode by @FabianSchmick in #92

New Contributors

Full Diff: 1.13.0...1.14.0

Better deal with MySQL's `max_execution_time` setting

20 Dec 11:21
bfca726
Compare
Choose a tag to compare

The max_execution_time might cause rows to be missing from dumps when PHP < 7.4.13, but could also lead to dumps being aborted for newer PHP versions (#84).

This release disables the max_execution_time timeout value for slimdump's database connection (#86).

Additionally, a warning is printed (#85) when the number of rows dumped does not match the number expected (which is based on a COUNT(*) query).

Dump triggers properly with a delimiter

29 Jul 10:24
Compare
Choose a tag to compare

A release without changes

21 Apr 14:51
Compare
Choose a tag to compare

But hopefully, this time a .phar version will be built. 🤞🏻

Use 0x... hex-dump style also for BINARY column types (#80)

21 Apr 14:45
7b3adf0
Compare
Choose a tag to compare
1.12.1

Use `0x...` hex-dump style also for `BINARY` column types (#80)

single-line-insert-statements

15 Sep 12:00
cf09bcc
Compare
Choose a tag to compare

This release comes with the following changes:

  • Optional parameter --single-line-insert-statements: This option can speed up imports significantly if you dump tables with a very large number of rows.
  • KEYS are being DISABLED before inserting data and ENABLED afterwards.