From b1b101fd98c8b4354a4e0c73e867d817466de30e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 11 Sep 2025 13:19:21 +0200 Subject: sync, rooms, events, etc --- src/Database.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Database.php') diff --git a/src/Database.php b/src/Database.php index 3fff863..e84abc1 100644 --- a/src/Database.php +++ b/src/Database.php @@ -20,7 +20,14 @@ class Database $user = $_ENV['DB_USER']; $password = $_ENV['DB_PASSWORD']; - $this->connection = new \PDO("pgsql:host=$host;port=$port;dbname=$dbname", $user, $password); + $this->connection = new \PDO( + "pgsql:host=$host;port=$port;dbname=$dbname", + $user, + $password, + [ + \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, + ] + ); } /** -- cgit v1.2.3