@@ 1271-1290 (lines=20) @@ | ||
1268 | * {@inheritDoc} |
|
1269 | * |
|
1270 | */ |
|
1271 | public function getDecoratedConnection() |
|
1272 | { |
|
1273 | $options = $this->getOptions(); |
|
1274 | $options = [ |
|
1275 | 'username' => $options['user'], |
|
1276 | 'password' => $options['pass'], |
|
1277 | 'database' => $options['name'], |
|
1278 | 'quoteIdentifiers' => true, |
|
1279 | ] + $options; |
|
1280 | ||
1281 | $driver = new SqlServerDriver($options); |
|
1282 | ||
1283 | if (method_exists($driver, 'setConnection')) { |
|
1284 | $driver->setConnection($this->connection); |
|
1285 | } else { |
|
1286 | $driver->connection($this->connection); |
|
1287 | } |
|
1288 | ||
1289 | return new Connection(['driver' => $driver] + $options); |
|
1290 | } |
|
1291 | } |
|
1292 |
@@ 1401-1420 (lines=20) @@ | ||
1398 | * {@inheritDoc} |
|
1399 | * |
|
1400 | */ |
|
1401 | public function getDecoratedConnection() |
|
1402 | { |
|
1403 | $options = $this->getOptions(); |
|
1404 | $options = [ |
|
1405 | 'username' => $options['user'], |
|
1406 | 'password' => $options['pass'], |
|
1407 | 'database' => $options['name'], |
|
1408 | 'quoteIdentifiers' => true, |
|
1409 | ] + $options; |
|
1410 | ||
1411 | $driver = new PostgresDriver($options); |
|
1412 | ||
1413 | if (method_exists($driver, 'setConnection')) { |
|
1414 | $driver->setConnection($this->connection); |
|
1415 | } else { |
|
1416 | $driver->connection($this->connection); |
|
1417 | } |
|
1418 | ||
1419 | return new Connection(['driver' => $driver] + $options); |
|
1420 | } |
|
1421 | } |
|
1422 |
@@ 1294-1312 (lines=19) @@ | ||
1291 | * {@inheritDoc} |
|
1292 | * |
|
1293 | */ |
|
1294 | public function getDecoratedConnection() |
|
1295 | { |
|
1296 | $options = $this->getOptions(); |
|
1297 | $options = [ |
|
1298 | 'username' => $options['user'], |
|
1299 | 'password' => $options['pass'], |
|
1300 | 'database' => $options['name'], |
|
1301 | 'quoteIdentifiers' => true, |
|
1302 | ] + $options; |
|
1303 | ||
1304 | $driver = new MysqlDriver($options); |
|
1305 | if (method_exists($driver, 'setConnection')) { |
|
1306 | $driver->setConnection($this->connection); |
|
1307 | } else { |
|
1308 | $driver->connection($this->connection); |
|
1309 | } |
|
1310 | ||
1311 | return new Connection(['driver' => $driver] + $options); |
|
1312 | } |
|
1313 | } |
|
1314 |