22
33declare (strict_types=1 );
44
5- namespace Yiisoft \Db \Sqlite \ PDO ;
5+ namespace Yiisoft \Db \Sqlite ;
66
77use PDO ;
88use Yiisoft \Db \Driver \PDO \CommandPDOInterface ;
9- use Yiisoft \Db \Driver \PDO \ConnectionPDO ;
9+ use Yiisoft \Db \Driver \PDO \ConnectionPDO as AbstractConnectionPDO ;
1010use Yiisoft \Db \Exception \Exception ;
1111use Yiisoft \Db \Exception \InvalidConfigException ;
1212use Yiisoft \Db \QueryBuilder \QueryBuilderInterface ;
1313use Yiisoft \Db \Schema \Quoter ;
1414use Yiisoft \Db \Schema \QuoterInterface ;
1515use Yiisoft \Db \Schema \SchemaInterface ;
16- use Yiisoft \Db \Sqlite \Schema ;
1716use Yiisoft \Db \Transaction \TransactionInterface ;
1817
1918use function strncmp ;
2019
2120/**
2221 * Database connection class prefilled for SQLite Server.
2322 */
24- final class ConnectionPDOSqlite extends ConnectionPDO
23+ final class ConnectionPDO extends AbstractConnectionPDO
2524{
2625 /**
2726 * Reset the connection after cloning.
@@ -38,7 +37,7 @@ public function __clone()
3837
3938 public function createCommand (?string $ sql = null , array $ params = []): CommandPDOInterface
4039 {
41- $ command = new CommandPDOSqlite ($ this , $ this ->queryCache );
40+ $ command = new CommandPDO ($ this , $ this ->queryCache );
4241
4342 if ($ sql !== null ) {
4443 $ command ->setSql ($ sql );
@@ -57,7 +56,7 @@ public function createCommand(?string $sql = null, array $params = []): CommandP
5756
5857 public function createTransaction (): TransactionInterface
5958 {
60- return new TransactionPDOSqlite ($ this );
59+ return new TransactionPDO ($ this );
6160 }
6261
6362 /**
@@ -66,7 +65,7 @@ public function createTransaction(): TransactionInterface
6665 public function getQueryBuilder (): QueryBuilderInterface
6766 {
6867 if ($ this ->queryBuilder === null ) {
69- $ this ->queryBuilder = new QueryBuilderPDOSqlite (
68+ $ this ->queryBuilder = new QueryBuilder (
7069 $ this ->getQuoter (),
7170 $ this ->getSchema (),
7271 );
0 commit comments