This commit is contained in:
Dariusz Jaski 2021-03-07 11:06:39 +01:00
parent 661406db67
commit 3f9758c403
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ namespace Fufle\ORM\Database\Connectors;
use Fufle\ORM\Database\Credentials;
class PostgresConnector implements IConnector {
public function getConnectionString(Credentials $credentials) {
return "";
public function getConnectionString(Credentials $c) {
return "pgsql:host={$c->host};port={$c->port};dbname={$c->database};user={$c->user};password={$c->password}";
}
public function driverEquals(string $driver) {
return $driver === 'pgsql';