1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Use persistent connections with PostgreSQL

This commit is contained in:
J. King 2018-12-10 12:28:43 -05:00
parent 913cf71620
commit 35d46d2913

View file

@ -24,7 +24,7 @@ class PDODriver extends Driver {
$dsn = $this->makeconnectionString(true, $user, $pass, $db, $host, $port, $service); $dsn = $this->makeconnectionString(true, $user, $pass, $db, $host, $port, $service);
$this->db = new \PDO("pgsql:$dsn", $user, $pass, [ $this->db = new \PDO("pgsql:$dsn", $user, $pass, [
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
//\PDO::ATTR_PERSISTENT => true, \PDO::ATTR_PERSISTENT => true,
]); ]);
} }