From ae052007d0ce8bf2f26ee06bf568eba8fe7dd1b9 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 fd4568f..0cadbe2 100644 --- a/odoo-stubs/sql_db.pyi +++ b/odoo-stubs/sql_db.pyi @@ -62,6 +62,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 mogrify(self, query, params: Any | None = ...) -> str: ... def execute(self, query, params: Any | None = ..., log_exceptions: bool = ...): ...