fdn
This commit is contained in:
parent
661406db67
commit
3f9758c403
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue