| @@ 1430-1445 (lines=16) @@ | ||
| 1427 | /** |
|
| 1428 | * @inheritDoc |
|
| 1429 | */ |
|
| 1430 | public function getDecoratedConnection() |
|
| 1431 | { |
|
| 1432 | $options = $this->getOptions(); |
|
| 1433 | $options = [ |
|
| 1434 | 'username' => $options['user'], |
|
| 1435 | 'password' => $options['pass'], |
|
| 1436 | 'database' => $options['name'], |
|
| 1437 | 'quoteIdentifiers' => true, |
|
| 1438 | ] + $options; |
|
| 1439 | ||
| 1440 | $driver = new PostgresDriver($options); |
|
| 1441 | ||
| 1442 | $driver->setConnection($this->connection); |
|
| 1443 | ||
| 1444 | return new Connection(['driver' => $driver] + $options); |
|
| 1445 | } |
|
| 1446 | } |
|
| 1447 | ||
| @@ 1307-1321 (lines=15) @@ | ||
| 1304 | /** |
|
| 1305 | * @inheritDoc |
|
| 1306 | */ |
|
| 1307 | public function getDecoratedConnection() |
|
| 1308 | { |
|
| 1309 | $options = $this->getOptions(); |
|
| 1310 | $options = [ |
|
| 1311 | 'username' => $options['user'], |
|
| 1312 | 'password' => $options['pass'], |
|
| 1313 | 'database' => $options['name'], |
|
| 1314 | 'quoteIdentifiers' => true, |
|
| 1315 | ] + $options; |
|
| 1316 | ||
| 1317 | $driver = new SqlServerDriver($options); |
|
| 1318 | $driver->setConnection($this->connection); |
|
| 1319 | ||
| 1320 | return new Connection(['driver' => $driver] + $options); |
|
| 1321 | } |
|
| 1322 | } |
|
| 1323 | ||
| @@ 1319-1333 (lines=15) @@ | ||
| 1316 | /** |
|
| 1317 | * @inheritDoc |
|
| 1318 | */ |
|
| 1319 | public function getDecoratedConnection() |
|
| 1320 | { |
|
| 1321 | $options = $this->getOptions(); |
|
| 1322 | $options = [ |
|
| 1323 | 'username' => $options['user'], |
|
| 1324 | 'password' => $options['pass'], |
|
| 1325 | 'database' => $options['name'], |
|
| 1326 | 'quoteIdentifiers' => true, |
|
| 1327 | ] + $options; |
|
| 1328 | ||
| 1329 | $driver = new MysqlDriver($options); |
|
| 1330 | $driver->setConnection($this->connection); |
|
| 1331 | ||
| 1332 | return new Connection(['driver' => $driver] + $options); |
|
| 1333 | } |
|
| 1334 | } |
|
| 1335 | ||