From f860ca0287cae049eb87bf664b81458c25233e55 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 27 Aug 2024 03:25:42 +0000 Subject: [PATCH] Removed another database oversight. --- src/DatabaseContext.php | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/DatabaseContext.php diff --git a/src/DatabaseContext.php b/src/DatabaseContext.php deleted file mode 100644 index 24b078c..0000000 --- a/src/DatabaseContext.php +++ /dev/null @@ -1,28 +0,0 @@ -connection; - } - - public function getQueryCount(): int { - $result = $this->connection->query('SHOW SESSION STATUS LIKE "Questions"'); - return $result->next() ? $result->getInteger(1) : 0; - } - - public function createMigrationManager(): DbMigrationManager { - return new DbMigrationManager($this->connection); - } - - public function createMigrationRepo(): IDbMigrationRepo { - return new FsDbMigrationRepo(SAT_DIR_MIGRATIONS); - } -}