From 3f9758c4032bd78628d60ab26d3ca0c7dcd23398 Mon Sep 17 00:00:00 2001 From: Dariusz Date: Sun, 7 Mar 2021 11:06:39 +0100 Subject: [PATCH] fdn --- src/Fufle/ORM/Database/Connectors/PostgresConnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fufle/ORM/Database/Connectors/PostgresConnector.php b/src/Fufle/ORM/Database/Connectors/PostgresConnector.php index db72b9b..fec017f 100644 --- a/src/Fufle/ORM/Database/Connectors/PostgresConnector.php +++ b/src/Fufle/ORM/Database/Connectors/PostgresConnector.php @@ -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';