This commit is contained in:
Dariusz Jaski 2021-03-07 10:54:11 +01:00
parent a026facb7c
commit 9c6c34f870
2 changed files with 4 additions and 0 deletions

View File

@ -6,4 +6,5 @@ use Fufle\ORM\Database\Credentials;
interface IConnector {
public function getConnectionString(Credentials $credentials);
public function driverEquals(string $driver);
}

View File

@ -8,4 +8,7 @@ class PostgresConnector implements IConnector {
public function getConnectionString(Credentials $credentials) {
return "";
}
public function driverEquals(string $driver) {
return $driver === 'pgsql';
}
}