File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed
Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 55namespace Yiisoft \Cache \Db \Tests \Support ;
66
77use Yiisoft \Db \Connection \ConnectionInterface ;
8- use Yiisoft \Db \Mssql \ConnectionPDO ;
9- use Yiisoft \Db \Mssql \PDODriver ;
8+ use Yiisoft \Db \Mssql \Connection ;
9+ use Yiisoft \Db \Mssql \Driver ;
1010
1111final class MssqlHelper extends ConnectionHelper
1212{
@@ -18,9 +18,9 @@ final class MssqlHelper extends ConnectionHelper
1818
1919 public function createConnection (): ConnectionInterface
2020 {
21- $ pdoDriver = new PDODriver ($ this ->dsn , $ this ->username , $ this ->password );
21+ $ pdoDriver = new Driver ($ this ->dsn , $ this ->username , $ this ->password );
2222 $ pdoDriver ->charset ($ this ->charset );
2323
24- return new ConnectionPDO ($ pdoDriver , $ this ->createSchemaCache ());
24+ return new Connection ($ pdoDriver , $ this ->createSchemaCache ());
2525 }
2626}
Original file line number Diff line number Diff line change 55namespace Yiisoft \Cache \Db \Tests \Support ;
66
77use Yiisoft \Db \Connection \ConnectionInterface ;
8- use Yiisoft \Db \Mysql \ConnectionPDO ;
9- use Yiisoft \Db \Mysql \PDODriver ;
8+ use Yiisoft \Db \Mysql \Connection ;
9+ use Yiisoft \Db \Mysql \Driver ;
1010
1111final class MysqlHelper extends ConnectionHelper
1212{
@@ -18,9 +18,9 @@ final class MysqlHelper extends ConnectionHelper
1818
1919 public function createConnection (): ConnectionInterface
2020 {
21- $ pdoDriver = new PDODriver ($ this ->dsn , $ this ->username , $ this ->password );
21+ $ pdoDriver = new Driver ($ this ->dsn , $ this ->username , $ this ->password );
2222 $ pdoDriver ->charset ($ this ->charset );
2323
24- return new ConnectionPDO ($ pdoDriver , $ this ->createSchemaCache ());
24+ return new Connection ($ pdoDriver , $ this ->createSchemaCache ());
2525 }
2626}
Original file line number Diff line number Diff line change 66
77use PDO ;
88use Yiisoft \Db \Connection \ConnectionInterface ;
9- use Yiisoft \Db \Oracle \ConnectionPDO ;
10- use Yiisoft \Db \Oracle \PDODriver ;
9+ use Yiisoft \Db \Oracle \Connection ;
10+ use Yiisoft \Db \Oracle \Driver ;
1111
1212final class OracleHelper extends ConnectionHelper
1313{
@@ -19,10 +19,10 @@ final class OracleHelper extends ConnectionHelper
1919
2020 public function createConnection (): ConnectionInterface
2121 {
22- $ pdoDriver = new PDODriver ($ this ->dsn , $ this ->username , $ this ->password );
22+ $ pdoDriver = new Driver ($ this ->dsn , $ this ->username , $ this ->password );
2323 $ pdoDriver ->charset ($ this ->charset );
2424 $ pdoDriver ->attributes ([PDO ::ATTR_STRINGIFY_FETCHES => true ]);
2525
26- return new ConnectionPDO ($ pdoDriver , $ this ->createSchemaCache ());
26+ return new Connection ($ pdoDriver , $ this ->createSchemaCache ());
2727 }
2828}
Original file line number Diff line number Diff line change 55namespace Yiisoft \Cache \Db \Tests \Support ;
66
77use Yiisoft \Db \Connection \ConnectionInterface ;
8- use Yiisoft \Db \Pgsql \ConnectionPDO ;
9- use Yiisoft \Db \Pgsql \PDODriver ;
8+ use Yiisoft \Db \Pgsql \Connection ;
9+ use Yiisoft \Db \Pgsql \Driver ;
1010
1111final class PgsqlHelper extends ConnectionHelper
1212{
@@ -18,9 +18,9 @@ final class PgsqlHelper extends ConnectionHelper
1818
1919 public function createConnection (): ConnectionInterface
2020 {
21- $ pdoDriver = new PDODriver ($ this ->dsn , $ this ->username , $ this ->password );
21+ $ pdoDriver = new Driver ($ this ->dsn , $ this ->username , $ this ->password );
2222 $ pdoDriver ->charset ($ this ->charset );
2323
24- return new ConnectionPDO ($ pdoDriver , $ this ->createSchemaCache ());
24+ return new Connection ($ pdoDriver , $ this ->createSchemaCache ());
2525 }
2626}
Original file line number Diff line number Diff line change 55namespace Yiisoft \Cache \Db \Tests \Support ;
66
77use Yiisoft \Db \Connection \ConnectionInterface ;
8- use Yiisoft \Db \Sqlite \ConnectionPDO ;
9- use Yiisoft \Db \Sqlite \PDODriver ;
8+ use Yiisoft \Db \Sqlite \Connection ;
9+ use Yiisoft \Db \Sqlite \Driver ;
1010
1111final class SqliteHelper extends ConnectionHelper
1212{
@@ -16,9 +16,9 @@ final class SqliteHelper extends ConnectionHelper
1616
1717 public function createConnection (): ConnectionInterface
1818 {
19- $ pdoDriver = new PDODriver ($ this ->dsn , '' , '' );
19+ $ pdoDriver = new Driver ($ this ->dsn , '' , '' );
2020 $ pdoDriver ->charset ($ this ->charset );
2121
22- return new ConnectionPDO ($ pdoDriver , $ this ->createSchemaCache ());
22+ return new Connection ($ pdoDriver , $ this ->createSchemaCache ());
2323 }
2424}
You can’t perform that action at this time.
0 commit comments