diff --git a/src/Fufle/ORM/Database/Connectors/IConnector.php b/src/Fufle/ORM/Database/Connectors/IConnector.php index c382824..1b63255 100644 --- a/src/Fufle/ORM/Database/Connectors/IConnector.php +++ b/src/Fufle/ORM/Database/Connectors/IConnector.php @@ -6,4 +6,5 @@ use Fufle\ORM\Database\Credentials; interface IConnector { public function getConnectionString(Credentials $credentials); + public function driverEquals(string $driver); } \ No newline at end of file diff --git a/src/Fufle/ORM/Database/Connectors/PostgresConnector.php b/src/Fufle/ORM/Database/Connectors/PostgresConnector.php index a42dec9..db72b9b 100644 --- a/src/Fufle/ORM/Database/Connectors/PostgresConnector.php +++ b/src/Fufle/ORM/Database/Connectors/PostgresConnector.php @@ -8,4 +8,7 @@ class PostgresConnector implements IConnector { public function getConnectionString(Credentials $credentials) { return ""; } + public function driverEquals(string $driver) { + return $driver === 'pgsql'; + } } \ No newline at end of file