diff options
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, +      ] +    );    }    /**  | 
