infotech / mysql-data-dumper
v0.1.1
2015-04-27 12:57 UTC
Requires
- php: >=5.4.0
- ext-pdo: *
This package is not auto-updated.
Last update: 2024-12-21 18:19:35 UTC
README
Simple helper class that allows to backup and restore data from MySQL database.
$dumper = new Infotech\MysqlDataDumper\MysqlDataDumper(); $dumper->addConnection($pdoInstance); $dumper->backup(); // saves all rows from all tables of given connection(s) into memory // execute process that makes indirect data modifications $dumper->restore(); // restores saved data into database // execute another process $dumper->restore(); // restores the data again