Concerns
3 weeks ago
Connection.php
2 years ago
MySqlDriver.php
3 weeks ago
PostgresDriver.php
3 weeks ago
SQLiteDriver.php
3 weeks ago
SqlServerConnection.php
3 weeks ago
SqlServerDriver.php
3 weeks ago
SqlServerDriver.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\PDO; |
| 4 | |
| 5 | use IAWPSCOPED\Doctrine\DBAL\Driver\AbstractSQLServerDriver; |
| 6 | /** @internal */ |
| 7 | class SqlServerDriver extends AbstractSQLServerDriver |
| 8 | { |
| 9 | /** |
| 10 | * Create a new database connection. |
| 11 | * |
| 12 | * @param mixed[] $params |
| 13 | * @param string|null $username |
| 14 | * @param string|null $password |
| 15 | * @param mixed[] $driverOptions |
| 16 | * @return \Illuminate\Database\PDO\SqlServerConnection |
| 17 | */ |
| 18 | public function connect(array $params, $username = null, $password = null, array $driverOptions = []) |
| 19 | { |
| 20 | return new SqlServerConnection(new Connection($params['pdo'])); |
| 21 | } |
| 22 | /** |
| 23 | * {@inheritdoc} |
| 24 | */ |
| 25 | public function getName() |
| 26 | { |
| 27 | return 'pdo_sqlsrv'; |
| 28 | } |
| 29 | } |
| 30 |