This commit is contained in:
Dariusz Jaski 2021-03-07 11:34:29 +01:00
parent fbf2aaae07
commit 37599e8cf6
2 changed files with 2 additions and 0 deletions

View File

@ -7,4 +7,5 @@ use Fufle\ORM\Database\Credentials;
interface IConnector { interface IConnector {
public function getConnectionString(Credentials $credentials); public function getConnectionString(Credentials $credentials);
public function driverEquals(string $driver); public function driverEquals(string $driver);
public static function Connect(string $host, int $port, string $database, string $user, string $password);
} }

View File

@ -3,6 +3,7 @@
namespace Fufle\ORM\Database\Connectors; namespace Fufle\ORM\Database\Connectors;
use Fufle\ORM\Database\Credentials; use Fufle\ORM\Database\Credentials;
use Fufle\ORM\Database\ConnectionManager;
class PostgresConnector implements IConnector { class PostgresConnector implements IConnector {
public function getConnectionString(Credentials $c) { public function getConnectionString(Credentials $c) {