We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb3ae4 commit d5cdee9Copy full SHA for d5cdee9
src/DBAL/PostgresDriver.php
@@ -13,20 +13,9 @@
13
namespace Hyperf\Database\PgSQL\DBAL;
14
15
use Doctrine\DBAL\Driver\AbstractPostgreSQLDriver;
16
-use InvalidArgumentException;
17
-use Swoole\Coroutine\PostgreSQL;
+use Hyperf\Database\DBAL\Concerns\ConnectsToDatabase;
18
19
class PostgresDriver extends AbstractPostgreSQLDriver
20
{
21
- /**
22
- * Create a new database connection.
23
- */
24
- public function connect(array $params)
25
- {
26
- if (! isset($params['pdo']) || ! $params['pdo'] instanceof PostgreSQL) {
27
- throw new InvalidArgumentException('The "pdo" property must be required.');
28
- }
29
-
30
- return new Connection($params['pdo']);
31
+ use ConnectsToDatabase;
32
}
0 commit comments