PHP Class Spatie\DbDumper\Databases\MySql

Inheritance: extends Spatie\DbDumper\DbDumper
Show file Open project: spatie/db-dumper Class Usage Examples

Protected Properties

Property Type Description
$useExtendedInserts boolean
$useSingleTransaction boolean

Public Methods

Method Description
__construct ( )
dontUseExtendedInserts ( )
dontUseSingleTransaction ( )
dumpToFile ( string $dumpFile ) Dump the contents of the database to the given file.
getContentsOfCredentialsFile ( ) : string
getDumpCommand ( string $dumpFile, string $temporaryCredentialsFile ) : string Get the command that should be performed to dump the database.
useExtendedInserts ( )
useSingleTransaction ( )

Protected Methods

Method Description
guardAgainstIncompleteCredentials ( )

Method Details

__construct() public method

public __construct ( )

dontUseExtendedInserts() public method

dontUseSingleTransaction() public method

dumpToFile() public method

Dump the contents of the database to the given file.
public dumpToFile ( string $dumpFile )
$dumpFile string

getContentsOfCredentialsFile() public method

getDumpCommand() public method

Get the command that should be performed to dump the database.
public getDumpCommand ( string $dumpFile, string $temporaryCredentialsFile ) : string
$dumpFile string
$temporaryCredentialsFile string
return string

guardAgainstIncompleteCredentials() protected method

useExtendedInserts() public method

public useExtendedInserts ( )

useSingleTransaction() public method

Property Details

$useExtendedInserts protected property

protected bool $useExtendedInserts
return boolean

$useSingleTransaction protected property

protected bool $useSingleTransaction
return boolean