diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-09-11 13:19:21 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-09-11 13:19:21 +0200 |
commit | b1b101fd98c8b4354a4e0c73e867d817466de30e (patch) | |
tree | 763e6d3dab13a2af8c324f7f879c5874dced76f2 /src/Database.php | |
parent | db014ebf9f8f84a1a0d0972298e70bf29e57c37e (diff) |
sync, rooms, events, etc
Diffstat (limited to 'src/Database.php')
-rw-r--r-- | src/Database.php | 9 |
1 files changed, 8 insertions, 1 deletions
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, + ] + ); } /** |