![]() ![]() Only include these tables (array of table names), include all if empty.$ this-> _dumpSettings = self:: array_replace_recursive( $dumpSettingsDefault, $dumpSettings) Dump Settings missing settings in constructor will be replaced by default options $ this-> _pdoSettings = self:: array_replace_recursive( $pdoSettingsDefault, $pdoSettings) PDO:: MYSQL_ATTR_USE_BUFFERED_QUERY => false PDO:: ATTR_ERRMODE => PDO:: ERRMODE_EXCEPTION, * deprecated */ 'disable-foreign-keys-check' => true 'net_buffer_length' => self:: MAXLINESIZE, 'hex-blob' => true, /* faster than escaped content */ 'insert-ignore' => false, 'default-character-set' => Mysqldump:: UTF8, * * string $dsn PDO DSN connection string * string $user SQL account username * string $pass SQL account password * array $dumpSettings SQL database settings * array $pdoSettings PDO configured attributes */ public function _construct( Note that in the case of an SQLite database * connection, the filename must be in the $db parameter. can restore a dump from a file, when no mysql executable is available.įrom version 2.0, connections to database are made using the standard DSN, documented in PDO connection string.can save directly to google cloud storage over a compressed stream wrapper (GZIPSTREAM).modifying data from database on-the-fly when dumping, using hooks.does insert-ignore, like a REPLACE but ignoring errors if a duplicate key exists.supports virtual columns from MySQL 5.7.does extended-insert and/or complete-insert. ![]() dumps stored routines (functions and procedures).Linked to travis-ci testing system (testing from php 5.3 to 7.3 & hhvm) output compared against original mysqldump.resolves view dependencies (using Stand-In tables).MySQLDump-PHP is the only library that supports: Out of the box, MySQLDump-PHP supports backing up table structures, the data itself, views, triggers and events. This is a php version of mysqldump cli that comes with MySQL, without dependencies, output compression and sane defaults. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |