Create new postgres pool
This commit is contained in:
parent
b0d25f53cb
commit
901dc39d93
@ -45,7 +45,7 @@ class Postgres
|
||||
->withDatabase($settings->getDatabase());
|
||||
|
||||
yield from static::createDb($config);
|
||||
static::$connections[$dbKey] = pool($config, $settings->getMaxConnections(), $settings->getIdleTimeout());
|
||||
static::$connections[$dbKey] = new Pool($config, $settings->getMaxConnections(), $settings->getIdleTimeout());
|
||||
}
|
||||
|
||||
return static::$connections[$dbKey];
|
||||
|
Loading…
Reference in New Issue
Block a user