2017 © Pedro Peláez
 

library sqldump

Simple sql dump utility.

image

ccn/sqldump

Simple sql dump utility.

  • Sunday, April 30, 2017
  • by Carlos Cardenas Negro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple utility to dump a MySQL database

This is a simple utility that make a dump of a selected database to a text file containts the sql code and the data to recreate the database., (*1)

The sql text file should include the table structure the complete data and the indexes., (*2)

It don't dump Views, Stored procedures and so... because it's very simple, but it do his job., (*3)

It require and use monolog to export messages, error, and so..., (*4)

Usage

It's so simple. Create a instance of the class passing a \PDO instance and a monolog instance., (*5)

And execute his dumpSQL method $example->dumpSQL([$filename]). The filename it's optional (it default to 'Dump.sql'), (*6)

The other methods can be used also to extract only tables, fields anda data and so,... if you want., (*7)

dumpSQL();

The Versions

30/04 2017

dev-master

9999999-dev https://github.com/CarlosCardenasNegro/sqldump

Simple sql dump utility.

  Sources   Download

MIT

The Requires

  • ext-pdo *
  • ext-pdo_mysql *
  • php >=5.6.0

 

by Avatar Carlos Cardenas Negro

sql utils mysql-dump database-dump