From 5fa50e5be28d5a1ced62e7e6d1daf248521bfb57 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Wed, 19 Oct 2022 11:43:55 +0800 Subject: [PATCH] refactor: remove unneeded abstract public methods --- system/Database/BaseConnection.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/system/Database/BaseConnection.php b/system/Database/BaseConnection.php index 6d9078dcacb6..5e0464732d23 100644 --- a/system/Database/BaseConnection.php +++ b/system/Database/BaseConnection.php @@ -426,13 +426,6 @@ public function initialize() $this->connectDuration = microtime(true) - $this->connectTime; } - /** - * Connect to the database. - * - * @return mixed - */ - abstract public function connect(bool $persistent = false); - /** * Close the database connection. */ @@ -461,14 +454,6 @@ public function persistentConnect() return $this->connect(true); } - /** - * Keep or establish the connection if no queries have been sent for - * a length of time exceeding the server's idle timeout. - * - * @return mixed - */ - abstract public function reconnect(); - /** * Returns the actual connection object. If both a 'read' and 'write' * connection has been specified, you can pass either term in to @@ -483,13 +468,6 @@ public function getConnection(?string $alias = null) return $this->connID; } - /** - * Select a specific database table to use. - * - * @return mixed - */ - abstract public function setDatabase(string $databaseName); - /** * Returns the name of the current database being used. */ @@ -526,11 +504,6 @@ public function getPlatform(): string return $this->DBDriver; } - /** - * Returns a string containing the version of the database being used. - */ - abstract public function getVersion(): string; - /** * Sets the Table Aliases to use. These are typically * collected during use of the Builder, and set here