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';