PHP Class Spatie\DbDumper\Databases\PostgreSql

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

Protected Properties

Property Type Description
$useInserts boolean

Public Methods

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

Protected Methods

Method Description
getEnvironmentVariablesForDumpCommand ( string $temporaryCredentialsFile ) : array
guardAgainstIncompleteCredentials ( )

Method Details

__construct() public method

public __construct ( )

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
$dumpFile string
return string

getEnvironmentVariablesForDumpCommand() protected method

protected getEnvironmentVariablesForDumpCommand ( string $temporaryCredentialsFile ) : array
$temporaryCredentialsFile string
return array

guardAgainstIncompleteCredentials() protected method

useInserts() public method

public useInserts ( )

Property Details

$useInserts protected property

protected bool $useInserts
return boolean