src/Databases/PostgreSql.php 1 location
|
@@ 107-114 (lines=8) @@
|
| 104 |
|
return implode(':', $contents); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
protected function guardAgainstIncompleteCredentials() |
| 108 |
|
{ |
| 109 |
|
foreach (['userName', 'dbName', 'host'] as $requiredProperty) { |
| 110 |
|
if (empty($this->$requiredProperty)) { |
| 111 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |
| 112 |
|
} |
| 113 |
|
} |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
protected function getEnvironmentVariablesForDumpCommand(string $temporaryCredentialsFile): array |
| 117 |
|
{ |
src/Databases/MySql.php 1 location
|
@@ 248-255 (lines=8) @@
|
| 245 |
|
return implode(PHP_EOL, $contents); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
protected function guardAgainstIncompleteCredentials() |
| 249 |
|
{ |
| 250 |
|
foreach (['userName', 'dbName', 'host'] as $requiredProperty) { |
| 251 |
|
if (strlen($this->$requiredProperty) === 0) { |
| 252 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |
| 253 |
|
} |
| 254 |
|
} |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
protected function determineQuote(): string |
| 258 |
|
{ |