fdn
This commit is contained in:
parent
661406db67
commit
3f9758c403
|
@ -5,8 +5,8 @@ namespace Fufle\ORM\Database\Connectors;
|
||||||
use Fufle\ORM\Database\Credentials;
|
use Fufle\ORM\Database\Credentials;
|
||||||
|
|
||||||
class PostgresConnector implements IConnector {
|
class PostgresConnector implements IConnector {
|
||||||
public function getConnectionString(Credentials $credentials) {
|
public function getConnectionString(Credentials $c) {
|
||||||
return "";
|
return "pgsql:host={$c->host};port={$c->port};dbname={$c->database};user={$c->user};password={$c->password}";
|
||||||
}
|
}
|
||||||
public function driverEquals(string $driver) {
|
public function driverEquals(string $driver) {
|
||||||
return $driver === 'pgsql';
|
return $driver === 'pgsql';
|
||||||
|
|
Loading…
Reference in New Issue