Reorder and Added missing databases

This commit is contained in:
2023-02-28 23:41:51 -03:00
parent a326904825
commit 99344fda7d
17 changed files with 260 additions and 251 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace ProVM\Database;
use ProVM\Implement\Database;
class PostgreSQL extends Database
{
public function getDsn(): string
{
$dsn = ["pgsql:host={$this->getHost()}"];
if ($this->getPort()) {
$dsn []= "port={$this->getPort()}";
}
$dsn []= "dbname={$this->getName()}";
$dsn []= "user={$this->getUser()}";
$dsn []= "password={$this->getPassword()}";
return implode(';', $dsn);
}
}