๐ Code Context
127 $options[PDO::MYSQL_ATTR_SSL_KEY] = $_ENV['DATABASE_SSL_KEY'];
128 }
129 }
130
131 try {
132 $this->conn = new PDO($dsn, $this->username, $this->password, $options);
133 } catch (PDOException $e) {
โ 134 throw new Exception(
135 "Database connection failed ({$this->driver}): " . $e->getMessage(),
136 (int)$e->getCode(),
137 $e
138 );
139 }
140 }
141