Skip to content

Commit

Permalink
Merge pull request #38 from JensMyParcel/fix/postgresql-driver-unknown
Browse files Browse the repository at this point in the history
fix: Add postgresql to DbService DsnParser
  • Loading branch information
RamyHakam authored Jun 5, 2024
2 parents ca09573 + 1849746 commit 2a51eb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Services/DbService.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public function __construct(
public function createDatabase(string $dbName): int
{

$dsnParser = new DsnParser(['mysql' => 'pdo_mysql']);
$dsnParser = new DsnParser([
'mysql' => 'pdo_mysql',
'postgresql' => 'pdo_pgsql',
]);
$tmpConnection = DriverManager::getConnection($dsnParser->parse($this->dbCredentials['db_url']));

$platform = $tmpConnection->getDatabasePlatform();
Expand Down

0 comments on commit 2a51eb5

Please sign in to comment.