@@ -17,14 +17,16 @@ MySQLDump - PHP
1717
1818This is a php version of mysqldump cli that comes with MySQL, without dependencies, output compression and sane defaults.
1919
20- Out of the box, MySQLDump-PHP supports backing up table structures, the data itself, views and triggers .
20+ Out of the box, MySQLDump-PHP supports backing up table structures, the data itself, views, triggers and events .
2121
2222MySQLDump-PHP is the only library that supports:
2323* output binary blobs as hex.
2424* resolves view dependencies (using Stand-In tables).
25- * output compared against original mysqldump. Linked to travis-ci testing system.
25+ * output compared against original mysqldump. Linked to travis-ci testing system (testing from php 5.3 to 7.1 & hhvm)
2626* dumps stored procedures.
27+ * dumps events.
2728* does extended-insert and/or complete-insert.
29+ * supports virtual columns from MySQL 5.7.
2830
2931## Important
3032
@@ -111,32 +113,37 @@ Refer to the [wiki](https://github.com/ifsnop/mysqldump-php/wiki/full-example) f
111113 $pdoSettings = array()
112114 )
113115
114- $dumpSettingsDefault = array(
116+ $dumpSettingsDefault = array(
115117 'include-tables' => array(),
116118 'exclude-tables' => array(),
117- 'compress' => 'None',
118- 'no-data' => false,
119+ 'compress' => Mysqldump::NONE,
120+ 'init_commands' => array(),
121+ 'no-data' => array(),
119122 'reset-auto-increment' => false,
123+ 'add-drop-database' => false,
120124 'add-drop-table' => false,
121- 'single-transaction' => true,
122- 'lock-tables' => false,
125+ 'add-drop-trigger' => true,
123126 'add-locks' => true,
124- 'extended-insert' => true,
125127 'complete-insert' => false,
128+ 'databases' => false,
129+ 'default-character-set' => Mysqldump::UTF8,
126130 'disable-keys' => true,
127- 'where' => '',
131+ 'extended-insert' => true,
132+ 'events' => false,
133+ 'hex-blob' => true, /* faster than escaped content * /
134+ 'net_buffer_length' => self::MAXLINESIZE,
135+ 'no-autocommit' => true,
128136 'no-create-info' => false,
129- 'skip-triggers' => false,
130- 'add-drop-trigger' => true,
137+ 'lock-tables' => true,
131138 'routines' => false,
132- 'hex-blob' => true,
133- 'databases' => false,
134- 'add-drop-database' => false,
139+ 'single-transaction' => true,
140+ 'skip-triggers' => false,
135141 'skip-tz-utc' => false,
136- 'no-autocommit' => true,
137- 'default-character-set' => 'utf8',
138142 'skip-comments' => false,
139143 'skip-dump-date' => false,
144+ 'where' => '',
145+ /* deprecated * /
146+ 'disable-foreign-keys-check' => true
140147 );
141148
142149 $pdoSettingsDefaults = array(
@@ -256,7 +263,7 @@ it is identical tests are OK.
256263
257264## TODO
258265
259- .. .
266+ Write more tests .
260267
261268## Contributing
262269
@@ -269,11 +276,13 @@ This project is open-sourced software licensed under the [GPL license](http://ww
269276
270277## Credits
271278
279+ After more than 8 years, there is barely anything left from the original source code, but:
280+
272281Originally based on James Elliott's script from 2009.
273282http://code.google.com/p/db-mysqldump/
274283
275284Adapted and extended by Michael J. Calkins.
276285https://github.com/clouddueling
277286
278- Currently maintained and developed by Diego Torres.
287+ Currently maintained, developed and improved by Diego Torres.
279288https://github.com/ifsnop
0 commit comments