1 | <?php |
||
9 | class MySql extends DbDumper |
||
10 | { |
||
11 | protected $dbName; |
||
12 | protected $userName; |
||
13 | protected $password; |
||
14 | protected $host = 'localhost'; |
||
15 | protected $port = 3306; |
||
16 | protected $socket; |
||
17 | protected $dumpBinaryPath = ''; |
||
18 | protected $useExtendedInserts = true; |
||
19 | |||
20 | public function getDbName() : string |
||
24 | |||
25 | public function setDbName(string $dbName) : MySql |
||
31 | |||
32 | public function setUserName(string $userName) : MySql |
||
38 | |||
39 | public function setPassword(string $password) : MySql |
||
45 | |||
46 | public function setHost(string $host) : MySql |
||
52 | |||
53 | public function setPort(int $port) : MySql |
||
59 | |||
60 | public function setSocket(int $socket) : MySql |
||
66 | |||
67 | public function setDumpBinaryPath(string $dumpBinaryPath) : MySql |
||
77 | |||
78 | public function useExtendedInserts() : MySql |
||
84 | |||
85 | public function dontUseExtendedInserts() : MySql |
||
91 | |||
92 | /* |
||
93 | * Dump the contents of the database to the given file. |
||
94 | */ |
||
95 | public function dumpToFile(string $dumpFile) |
||
113 | |||
114 | /** |
||
115 | * Get the command that should be performed to dump the database. |
||
116 | */ |
||
117 | public function getDumpCommand(string $dumpFile, string $temporaryCredentialsFile) : string |
||
134 | |||
135 | public function getContentsOfCredentialsFile() : string |
||
147 | |||
148 | protected function guardAgainstIncompleteCredentials() |
||
156 | } |
||
157 |