Reorder and Added missing databases
This commit is contained in:
19
src/Database/PostgreSQL.php
Normal file
19
src/Database/PostgreSQL.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user