From 1339de93bf08d773207468227f7d134d41e68688 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 13 Sep 2024 15:38:44 +0000 Subject: [PATCH] Expose getAffectedRows method in IDbConnection interface. --- VERSION | 2 +- src/Data/IDbConnection.php | 9 ++++++++- src/Data/MariaDB/MariaDBConnection.php | 7 +------ src/Data/NullDb/NullDbConnection.php | 6 +++++- src/Data/SQLite/SQLiteConnection.php | 7 +------ 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/VERSION b/VERSION index 719c569..572c349 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2408.401736 +0.2408.401738 diff --git a/src/Data/IDbConnection.php b/src/Data/IDbConnection.php index b72e15f..d6f95d3 100644 --- a/src/Data/IDbConnection.php +++ b/src/Data/IDbConnection.php @@ -1,7 +1,7 @@ connection->affected_rows; } diff --git a/src/Data/NullDb/NullDbConnection.php b/src/Data/NullDb/NullDbConnection.php index d347fc8..aee8cfa 100644 --- a/src/Data/NullDb/NullDbConnection.php +++ b/src/Data/NullDb/NullDbConnection.php @@ -1,7 +1,7 @@ connection->enableExceptions(true); } - /** - * Gets the number of rows affected by the last operation. - * - * @return int|string Number of rows affected by the last operation. - */ public function getAffectedRows(): int|string { return $this->connection->changes(); }