Enhance IDb.php, pdo.php, and mysql.db.php with deleteRowById method for improved database handling.

This commit is contained in:
stephan.kasdorf
2025-11-28 09:24:09 +01:00
parent ef6bce4002
commit e4462e9402
3 changed files with 92 additions and 21 deletions

View File

@@ -100,4 +100,11 @@ interface IDb
* @return mixed
*/
public function loadPasswordByUsername( $user_name = false );
/**
* @desc Deletes a row from the database by its ID.
* @param int $id The ID of the row to be deleted. Defaults to 0.
* @return bool Returns true if the deletion was successful, false otherwise.
*/
public function deleteRowById( int $id = 0 ): bool;
}