mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
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.
This commit is contained in:
committed by
Trinh Anh Ngoc
parent
d50374d880
commit
ae052007d0
@@ -62,6 +62,7 @@ class Cursor(BaseCursor):
|
|||||||
def dictfetchone(self) -> dict[str, Any] | None: ...
|
def dictfetchone(self) -> dict[str, Any] | None: ...
|
||||||
def dictfetchmany(self, size) -> list[dict[str, Any]]: ...
|
def dictfetchmany(self, size) -> list[dict[str, Any]]: ...
|
||||||
def dictfetchall(self) -> list[dict[str, Any]]: ...
|
def dictfetchall(self) -> list[dict[str, Any]]: ...
|
||||||
|
def fetchall(self) -> list[tuple]: ...
|
||||||
def __del__(self) -> None: ...
|
def __del__(self) -> None: ...
|
||||||
def mogrify(self, query, params: Any | None = ...) -> str: ...
|
def mogrify(self, query, params: Any | None = ...) -> str: ...
|
||||||
def execute(self, query, params: Any | None = ..., log_exceptions: bool = ...): ...
|
def execute(self, query, params: Any | None = ..., log_exceptions: bool = ...): ...
|
||||||
|
|||||||
Reference in New Issue
Block a user