File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+ /**
5
+ * This file is part of Hyperf.
6
+ *
7
+ * @link https://www.hyperf.io
8
+ * @document https://hyperf.wiki
9
+
10
+ * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
11
+ */
12
+
13
+ namespace Hyperf \Database \PgSQL \DBAL ;
14
+
15
+ use Doctrine \DBAL \Driver \AbstractPostgreSQLDriver ;
16
+ use Hyperf \Database \DBAL \Concerns \ConnectsToDatabase ;
17
+
18
+ class PostgresPdoDriver extends AbstractPostgreSQLDriver
19
+ {
20
+ use ConnectsToDatabase;
21
+ }
Original file line number Diff line number Diff line change 12
12
namespace Hyperf \Database \PgSQL ;
13
13
14
14
use Hyperf \Database \Connection ;
15
- use Hyperf \Database \PgSQL \DBAL \PostgresDriver ;
15
+ use Hyperf \Database \PgSQL \DBAL \PostgresPdoDriver ;
16
16
use Hyperf \Database \PgSQL \Query \Grammars \PostgresGrammar as QueryGrammar ;
17
17
use Hyperf \Database \PgSQL \Query \Processors \PostgresProcessor ;
18
18
use Hyperf \Database \PgSQL \Schema \Grammars \PostgresGrammar as SchemaGrammar ;
@@ -76,8 +76,8 @@ protected function getDefaultPostProcessor(): PostgresProcessor
76
76
/**
77
77
* Get the Doctrine DBAL driver.
78
78
*/
79
- protected function getDoctrineDriver (): PostgresDriver
79
+ protected function getDoctrineDriver (): PostgresPdoDriver
80
80
{
81
- return new PostgresDriver ();
81
+ return new PostgresPdoDriver ();
82
82
}
83
83
}
You can’t perform that action at this time.
0 commit comments