Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/ibm-db/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "3.2.9"
version = "3.3.0"
upstream-repository = "https://github.com/ibmdb/python-ibmdb"
13 changes: 13 additions & 0 deletions stubs/ibm-db/ibm_db.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ SQL_BOOLEAN: Final[int]
SQL_CHAR: Final[int]
SQL_CLOB: Final[int]
SQL_CLOB_LOCATOR: Final[int]
SQL_CONCURRENT_TRANS: Final[int]
SQL_COORDINATED_TRANS: Final[int]
SQL_CURSOR_DYNAMIC: Final[int]
SQL_CURSOR_FORWARD_ONLY: Final[int]
SQL_CURSOR_KEYSET_DRIVEN: Final[int]
Expand Down Expand Up @@ -162,6 +164,7 @@ SQL_ATTR_REPORT_SEAMLESSFAILOVER_WARNING: Final[int]
SQL_ATTR_REPORT_TIMESTAMP_TRUNC_AS_WARN: Final[int]
SQL_ATTR_RETRYONERROR: Final[int]
SQL_ATTR_RETRY_ON_MERGE: Final[int]
SQL_ATTR_ROW_ARRAY_SIZE: Final[int]
SQL_ATTR_SERVER_MSGTXT_MASK: Final[int]
SQL_ATTR_SERVER_MSGTXT_SP: Final[int]
SQL_ATTR_SESSION_GLOBAL_VAR: Final[int]
Expand Down Expand Up @@ -193,6 +196,10 @@ class IBM_DBClientInfo:
class IBM_DBConnection:
def __new__(cls, *args: object, **kwargs: object) -> Self: ...

@final
class IBM_DBEnvHandle:
def __new__(cls, *args: object, **kwargs: object) -> Self: ...

@final
class IBM_DBServerInfo:
def __new__(cls, *args: object, **kwargs: object) -> Self: ...
Expand Down Expand Up @@ -224,6 +231,7 @@ class IBM_DBStatement:
def __new__(cls, *args: object, **kwargs: object) -> Self: ...

def active(connection: IBM_DBConnection | None, /) -> bool: ...
def alloc_env_handle() -> IBM_DBEnvHandle: ...
def autocommit(connection: IBM_DBConnection, value: int = ..., /) -> int | bool: ...
def bind_param(
stmt: IBM_DBStatement,
Expand Down Expand Up @@ -262,12 +270,14 @@ def columns(
/,
) -> IBM_DBStatement: ...
def commit(connection: IBM_DBConnection, /) -> bool: ...
def commit_two_phase(env_handle: IBM_DBEnvHandle, /) -> bool: ...
def conn_error(connection: IBM_DBConnection | None = ..., /) -> str: ...
def conn_errormsg(connection: IBM_DBConnection | None = ..., /) -> str: ...
def conn_warn(connection: IBM_DBConnection | None = ..., /) -> str: ...
def connect(
database: str, user: str, password: str, options: dict[int, int | str] | None = ..., replace_quoted_literal: int = ..., /
) -> IBM_DBConnection | None: ...
def connect_coordinated(env_handle: IBM_DBEnvHandle, database: str, user: str, password: str, /) -> IBM_DBConnection: ...
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: ...
Expand Down Expand Up @@ -306,6 +316,7 @@ def foreign_keys(
fk_table_name: str | None = ...,
/,
) -> IBM_DBStatement: ...
def free_env_handle(env_handle: IBM_DBEnvHandle, /) -> bool: ...
def free_result(stmt: IBM_DBStatement, /) -> bool: ...
def free_stmt(stmt: IBM_DBStatement, /) -> bool: ...
def get_db_info(connection: IBM_DBConnection, option: int, /) -> str | bool: ...
Expand Down Expand Up @@ -334,7 +345,9 @@ def procedures(
def recreatedb(connection: IBM_DBConnection, dbName: str, codeSet: str | None = ..., mode: str | None = ..., /) -> bool: ...
def result(stmt: IBM_DBStatement, column: int | str, /) -> Any: ...
def rollback(connection: IBM_DBConnection, /) -> bool: ...
def rollback_two_phase(env_handle: IBM_DBEnvHandle, /) -> bool: ...
def server_info(connection: IBM_DBConnection, /) -> IBM_DBServerInfo | bool: ...
def set_env_attr(env_handle: IBM_DBEnvHandle, attribute: int, value: int, /) -> bool: ...
def set_option(resc: IBM_DBConnection | IBM_DBStatement, options: dict[int, int | str], type: int, /) -> bool: ...
def special_columns(
connection: IBM_DBConnection, qualifier: str | None, schema: str | None, table_name: str | None, scope: int, /
Expand Down