From 7cae61f61a042a772010274dd1d8f1ee4454e5a4 Mon Sep 17 00:00:00 2001 From: Danny Yang Date: Sun, 15 Dec 2024 00:33:51 -0500 Subject: [PATCH] Bump ibm-db to 3.2.4 (#13251) --- stubs/ibm-db/METADATA.toml | 2 +- stubs/ibm-db/ibm_db.pyi | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/stubs/ibm-db/METADATA.toml b/stubs/ibm-db/METADATA.toml index 98d2de17bb46..91a9fb7317ad 100644 --- a/stubs/ibm-db/METADATA.toml +++ b/stubs/ibm-db/METADATA.toml @@ -1,2 +1,2 @@ -version = "3.2.3" +version = "3.2.4" upstream_repository = "https://github.com/ibmdb/python-ibmdb" diff --git a/stubs/ibm-db/ibm_db.pyi b/stubs/ibm-db/ibm_db.pyi index 124cd0d3ac6e..685dc05245a5 100644 --- a/stubs/ibm-db/ibm_db.pyi +++ b/stubs/ibm-db/ibm_db.pyi @@ -10,6 +10,7 @@ QUOTED_LITERAL_REPLACEMENT_OFF: int QUOTED_LITERAL_REPLACEMENT_ON: int SQL_API_SQLROWCOUNT: int SQL_ATTR_AUTOCOMMIT: int +SQL_ATTR_CALL_RETURN: int SQL_ATTR_CURRENT_SCHEMA: int SQL_ATTR_CURSOR_TYPE: int SQL_ATTR_INFO_ACCTSTR: int @@ -69,6 +70,11 @@ SQL_SMALLINT: int SQL_TABLE_STAT: int SQL_TINYINT: int SQL_TRUE: int +SQL_TXN_NO_COMMIT: int +SQL_TXN_READ_COMMITTED: int +SQL_TXN_READ_UNCOMMITTED: int +SQL_TXN_REPEATABLE_READ: int +SQL_TXN_SERIALIZABLE: int SQL_TYPE_DATE: int SQL_TYPE_TIME: int SQL_TYPE_TIMESTAMP: int @@ -261,6 +267,7 @@ def connect( def createdb(connection: IBM_DBConnection, dbName: str, codeSet: str = ..., mode: str = ..., /) -> bool: ... def createdbNX(connection: IBM_DBConnection, dbName: str, codeSet: str = ..., mode: str = ..., /) -> bool: ... def cursor_type(stmt: IBM_DBStatement, /) -> int: ... +def debug(option: str | bool) -> None: ... def dropdb(connection: IBM_DBConnection, dbName: str, /) -> bool: ... def exec_immediate( connection: IBM_DBConnection, statement: str | None, options: dict[int, int] = ..., / @@ -269,6 +276,9 @@ def execute(stmt: IBM_DBStatement, parameters: tuple[object, ...] | None = ..., def execute_many( stmt: IBM_DBStatement, seq_of_parameters: tuple[object, ...], options: dict[int, int] = ..., / ) -> int | None: ... +def fetchall(stmt: IBM_DBStatement, /) -> list[tuple[object, ...]]: ... +def fetchmany(stmt: IBM_DBStatement, numberOfRows: int, /) -> list[tuple[object, ...]]: ... +def fetchone(stmt: IBM_DBStatement, /) -> tuple[object, ...]: ... def fetch_assoc(stmt: IBM_DBStatement, row_number: int = ..., /) -> dict[str, object] | bool: ... def fetch_both(stmt: IBM_DBStatement, row_number: int = ..., /) -> dict[int | str, object] | bool: ... def fetch_row(stmt: IBM_DBStatement, row_number: int = ..., /) -> bool: ... @@ -297,6 +307,7 @@ def get_db_info(connection: IBM_DBConnection, option: int, /) -> str | bool: ... def get_last_serial_value(stmt: IBM_DBStatement, /) -> str | bool: ... def get_num_result(stmt: IBM_DBStatement, /) -> int | bool: ... def get_option(resc: IBM_DBConnection | IBM_DBStatement, options: int, type: int, /) -> Any: ... +def get_sqlcode(connection_or_stmt: IBM_DBConnection | IBM_DBStatement | None = None, /) -> str: ... def next_result(stmt: IBM_DBStatement, /) -> IBM_DBStatement | bool: ... def num_fields(stmt: IBM_DBStatement, /) -> int | bool: ... def num_rows(stmt: IBM_DBStatement, /) -> int: ...