Documentation

DbDumper
in package

Table of Contents

$compressor  : object
$dbName  : string
$dumpBinaryPath  : string
$excludeTables  : array<string|int, mixed>
$extraOptions  : array<string|int, mixed>
$host  : string
$includeTables  : array<string|int, mixed>
$password  : string
$port  : int
$socket  : string
$timeout  : int
$userName  : string
addExtraOption()  : $this
create()  : mixed
dumpToFile()  : mixed
enableCompression()  : $this
excludeTables()  : $this
getCompressorExtension()  : string
getDbName()  : string
getHost()  : string
includeTables()  : $this
setDbName()  : $this
setDumpBinaryPath()  : mixed
setHost()  : $this
setPassword()  : $this
setPort()  : $this
setSocket()  : $this
setTimeout()  : $this
setUserName()  : $this
useCompressor()  : mixed
checkIfDumpWasSuccessFul()  : mixed
echoToFile()  : string

Properties

$compressor

protected object $compressor = null

$dumpBinaryPath

protected string $dumpBinaryPath = ''

$excludeTables

protected array<string|int, mixed> $excludeTables = []

$extraOptions

protected array<string|int, mixed> $extraOptions = []

$host

protected string $host = 'localhost'

$includeTables

protected array<string|int, mixed> $includeTables = []

Methods

addExtraOption()

public addExtraOption(string $extraOption) : $this
Parameters
$extraOption : string
Return values
$this

create()

public static create() : mixed
Return values
mixed

dumpToFile()

public abstract dumpToFile(string $dumpFile) : mixed
Parameters
$dumpFile : string
Return values
mixed

enableCompression()

public enableCompression() : $this
Tags
deprecated
Return values
$this

excludeTables()

public excludeTables(string|array<string|int, mixed> $excludeTables) : $this
Parameters
$excludeTables : string|array<string|int, mixed>
Tags
throws
CannotSetParameter
Return values
$this

getCompressorExtension()

public getCompressorExtension() : string
Return values
string

getDbName()

public getDbName() : string
Return values
string

getHost()

public getHost() : string
Return values
string

includeTables()

public includeTables(string|array<string|int, mixed> $includeTables) : $this
Parameters
$includeTables : string|array<string|int, mixed>
Tags
throws
CannotSetParameter
Return values
$this

setDbName()

public setDbName(string $dbName) : $this
Parameters
$dbName : string
Return values
$this

setDumpBinaryPath()

public setDumpBinaryPath(string $dumpBinaryPath) : mixed
Parameters
$dumpBinaryPath : string
Return values
mixed

setHost()

public setHost(string $host) : $this
Parameters
$host : string
Return values
$this

setPassword()

public setPassword(string $password) : $this
Parameters
$password : string
Return values
$this

setPort()

public setPort(int $port) : $this
Parameters
$port : int
Return values
$this

setSocket()

public setSocket(string $socket) : $this
Parameters
$socket : string
Return values
$this

setTimeout()

public setTimeout(int $timeout) : $this
Parameters
$timeout : int
Return values
$this

setUserName()

public setUserName(string $userName) : $this
Parameters
$userName : string
Return values
$this

checkIfDumpWasSuccessFul()

protected checkIfDumpWasSuccessFul(Process $process, string $outputFile) : mixed
Parameters
$process : Process
$outputFile : string
Return values
mixed

echoToFile()

protected echoToFile(string $command, string $dumpFile) : string
Parameters
$command : string
$dumpFile : string
Return values
string

Search results