PHP Class MySQLDump

Here is an inline example: $connection = @mysql_connect($dbhost,$dbuser,$dbpsw); $dumper = new MySQLDump($dbname,'filename.sql',false,false); $dumper->doDump(); Special thanks to: - Andrea Ingaglio helping in development of all class code - Dylan Pugh for precious advices halfing the size of the output file and for helping in debug
Author: Daniele Viganò - CreativeFactory.it ([email protected])
Afficher le fichier Open project: dg/mysql-dump Class Usage Examples

Méthodes publiques

Свойство Type Description
$tables array

Méthodes publiques

Méthode Description
__construct ( mysqli $connection, $charset = 'utf8' ) Connects to database.
dumpTable ( $handle, $table ) : void Dumps table to logical file.
save ( $file ) : void Saves dump to the file.
write ( $handle = NULL ) : void Writes dump to logical file.

Private Methods

Méthode Description
delimite ( $s )

Method Details

__construct() public méthode

Connects to database.
public __construct ( mysqli $connection, $charset = 'utf8' )
$connection mysqli

dumpTable() public méthode

Dumps table to logical file.
public dumpTable ( $handle, $table ) : void
Résultat void

save() public méthode

Saves dump to the file.
public save ( $file ) : void
Résultat void

write() public méthode

Writes dump to logical file.
public write ( $handle = NULL ) : void
Résultat void

Property Details

$tables public_oe property

public array $tables
Résultat array