From 9c6c34f8709236f6615965d325c1b0a965a6e8ae Mon Sep 17 00:00:00 2001 From: Dariusz Date: Sun, 7 Mar 2021 10:54:11 +0100 Subject: [PATCH] eq --- src/Fufle/ORM/Database/Connectors/IConnector.php | 1 + src/Fufle/ORM/Database/Connectors/PostgresConnector.php | 3 +++ 2 files changed, 4 insertions(+) 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