diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/PDO/SQLSrv/Connection.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Driver/PDO/SQLSrv/Connection.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/PDO/SQLSrv/Connection.php b/vendor/doctrine/dbal/src/Driver/PDO/SQLSrv/Connection.php new file mode 100644 index 0000000..78ba7f8 --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/PDO/SQLSrv/Connection.php | |||
@@ -0,0 +1,29 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Driver\PDO\SQLSrv; | ||
6 | |||
7 | use Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware; | ||
8 | use Doctrine\DBAL\Driver\PDO\Connection as PDOConnection; | ||
9 | use PDO; | ||
10 | |||
11 | final class Connection extends AbstractConnectionMiddleware | ||
12 | { | ||
13 | public function __construct(private readonly PDOConnection $connection) | ||
14 | { | ||
15 | parent::__construct($connection); | ||
16 | } | ||
17 | |||
18 | public function prepare(string $sql): Statement | ||
19 | { | ||
20 | return new Statement( | ||
21 | $this->connection->prepare($sql), | ||
22 | ); | ||
23 | } | ||
24 | |||
25 | public function getNativeConnection(): PDO | ||
26 | { | ||
27 | return $this->connection->getNativeConnection(); | ||
28 | } | ||
29 | } | ||