From c10ecf3855da8058192ac65454c84341f590996f Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Sat, 20 Jul 2024 13:59:47 -0400 Subject: [PATCH] Add fetchall method to sql_db.pyi This addition enhances the functionality of the database interface by allowing retrieval of all rows in a query result as tuples. It complements existing methods like dictfetchall and provides more options for data handling. --- odoo-stubs/sql_db.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo-stubs/sql_db.pyi b/odoo-stubs/sql_db.pyi index 4e3acae..adec24a 100644 --- a/odoo-stubs/sql_db.pyi +++ b/odoo-stubs/sql_db.pyi @@ -59,6 +59,7 @@ class Cursor(BaseCursor): def dictfetchone(self) -> dict[str, Any] | None: ... def dictfetchmany(self, size) -> list[dict[str, Any]]: ... def dictfetchall(self) -> list[dict[str, Any]]: ... + def fetchall(self) -> list[tuple]: ... def __del__(self) -> None: ... def execute(self, query, params: Any | None = ..., log_exceptions: bool = ...): ... def split_for_in_conditions(