Sqlite
extends 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
- Dump the contents of the database to a given file.
- enableCompression() : $this
- excludeTables() : $this
- getCompressorExtension() : string
- getDbName() : string
- getDumpCommand() : string
- Get the command that should be performed to dump the database.
- 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
$dbName
protected
string
$dbName
$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
= []
$password
protected
string
$password
$port
protected
int
$port
= 5432
$socket
protected
string
$socket
= ''
$timeout
protected
int
$timeout
= 0
$userName
protected
string
$userName
Methods
addExtraOption()
public
addExtraOption(string $extraOption) : $this
Parameters
- $extraOption : string
Return values
$this —create()
public
static create() : mixed
Return values
mixed —dumpToFile()
Dump the contents of the database to a given file.
public
dumpToFile(string $dumpFile) : mixed
Parameters
- $dumpFile : string
Tags
Return values
mixed —enableCompression()
public
enableCompression() : $this
Tags
Return values
$this —excludeTables()
public
excludeTables(string|array<string|int, mixed> $excludeTables) : $this
Parameters
- $excludeTables : string|array<string|int, mixed>
Tags
Return values
$this —getCompressorExtension()
public
getCompressorExtension() : string
Return values
string —getDbName()
public
getDbName() : string
Return values
string —getDumpCommand()
Get the command that should be performed to dump the database.
public
getDumpCommand(string $dumpFile) : string
Parameters
- $dumpFile : 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
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 —useCompressor()
public
useCompressor(Compressor $compressor) : mixed
Parameters
- $compressor : Compressor
Return values
mixed —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