This commit is contained in:
parent
a026facb7c
commit
9c6c34f870
|
@ -6,4 +6,5 @@ use Fufle\ORM\Database\Credentials;
|
|||
|
||||
interface IConnector {
|
||||
public function getConnectionString(Credentials $credentials);
|
||||
public function driverEquals(string $driver);
|
||||
}
|
|
@ -8,4 +8,7 @@ class PostgresConnector implements IConnector {
|
|||
public function getConnectionString(Credentials $credentials) {
|
||||
return "";
|
||||
}
|
||||
public function driverEquals(string $driver) {
|
||||
return $driver === 'pgsql';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue