python-oracledb の API リファレンス
python-oracledb (oracle/python-oracledb) の公開 API 89 件 —— クラス 5、関数 7、メソッド 77。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: oracle/python-oracledb
| 種別 | 件数 |
|---|---|
| クラス | 5 |
| 関数 | 7 |
| メソッド | 77 |
API 一覧
method
src.oracledb.aq.AsyncQueue.enqmany(messages:list['MessageProperties']) -> NoneEnqueues multiple messages into the queue.
method
src.oracledb.aq.AsyncQueue.enqone(message:'MessageProperties') -> NoneEnqueues a single message into the queue.
method
src.oracledb.aq.Queue.deqMany(max_num_messages:int) -> list['MessageProperties']Deprecated: use deqmany() instead.
method
src.oracledb.aq.Queue.deqOne() -> MessageProperties | NoneDeprecated: use deqone() instead.
method
src.oracledb.aq.Queue.enqMany(messages:list['MessageProperties']) -> NoneDeprecated: use enqmany() instead.
method
src.oracledb.aq.Queue.enqOne(message:'MessageProperties') -> NoneDeprecated: use enqone() instead.
method
src.oracledb.aq.Queue.enqmany(messages:list['MessageProperties']) -> NoneEnqueues multiple messages into the queue.
method
src.oracledb.aq.Queue.enqone(message:'MessageProperties') -> NoneEnqueues a single message into the queue.
method
src.oracledb.connection.AsyncConnection.begin_sessionless_transaction(transaction_id:str | bytes | None=None, timeout:int=60, defer_round_trip:bool=False) -> bytesBegins a new sessionless transaction.
method
src.oracledb.connection.AsyncConnection.callproc(name:str, parameters:list | tuple | None=None, keyword_parameters:dict | None=None) -> listCalls a PL/SQL procedure with the given name.
method
src.oracledb.connection.AsyncConnection.close() -> NoneCloses the connection.
method
src.oracledb.connection.AsyncConnection.commit() -> NoneCommits any pending transaction to the database.
method
src.oracledb.connection.AsyncConnection.execute(statement:str, parameters:list | tuple | dict | None=None) -> NoneExecutes a statement against the database.
method
src.oracledb.connection.AsyncConnection.gettype(name:str) -> DbObjectTypeReturns a type object given its name.
method
src.oracledb.connection.AsyncConnection.rollback() -> NoneRolls back any pending transaction.
method
src.oracledb.connection.AsyncConnection.tpc_commit(xid:Xid | None=None, one_phase:bool=False) -> NoneCommits a global transaction.
method
src.oracledb.connection.AsyncConnection.tpc_end(xid:Xid | None=None, flags:int=oracledb.TPC_END_NORMAL) -> NoneEnds or suspends work on a global transaction.
method
src.oracledb.connection.AsyncConnection.tpc_prepare(xid:Xid | None=None) -> boolPrepares a two-phase transaction for commit.
method
src.oracledb.connection.AsyncConnection.tpc_rollback(xid:Xid | None=None) -> NoneRolls back a global transaction.
method
src.oracledb.connection.BaseConnection.cancel() -> NoneBreaks a long-running statement.
method
src.oracledb.connection.Connection.begin(format_id:int=-1, transaction_id:str='', branch_id:str='') -> NoneExplicitly begins a new transaction.
method
src.oracledb.connection.Connection.begin_sessionless_transaction(transaction_id:str | bytes | None=None, timeout:int=60, defer_round_trip:bool=False) -> bytesBegins a new sessionless transaction.
method
src.oracledb.connection.Connection.callTimeout() -> intDeprecated.
method
src.oracledb.connection.Connection.commit() -> NoneCommits any pending transactions to the database.
method
src.oracledb.connection.Connection.gettype(name:str) -> DbObjectTypeReturns a type object given its name.
method
src.oracledb.connection.Connection.maxBytesPerCharacter() -> intDeprecated.
method
src.oracledb.connection.Connection.ping() -> NonePings the database to verify if the connection is valid.
method
src.oracledb.connection.Connection.rollback() -> NoneRolls back any pending transactions.
method
src.oracledb.connection.Connection.shutdown(mode:int=0) -> NoneShuts down the database.
method
src.oracledb.connection.Connection.startup(force:bool=False, restrict:bool=False, pfile:str | None=None) -> NoneStarts up the database.
method
src.oracledb.connection.Connection.tpc_commit(xid:Xid | None=None, one_phase:bool=False) -> NoneCommits a global transaction.
method
src.oracledb.connection.Connection.tpc_end(xid:Xid | None=None, flags:int=oracledb.TPC_END_NORMAL) -> NoneEnds or suspends work on a global transaction.
method
src.oracledb.connection.Connection.tpc_prepare(xid:Xid | None=None) -> boolPrepares a two-phase transaction for commit.
func
src.oracledb.constructors.Binary(value:Any) -> bytesConstructs an object holding a binary (long) string value.
func
src.oracledb.constructors.Date(year:int, month:int, day:int) -> datetime.dateConstructs an object holding a date value.
func
src.oracledb.constructors.Timestamp(year:int, month:int, day:int, hour:int=0, minute:int=0, second:int=0) -> datetime.datetimeConstructs an object holding a time stamp value.
method
src.oracledb.cursor.AsyncCursor.callproc(name:str, parameters:list | tuple | None=None, keyword_parameters:dict | None=None) -> listCalls a PL/SQL procedure with the given name.
method
src.oracledb.dataframe.DataFrame.num_columns() -> intReturns the number of columns in the data frame.
method
src.oracledb.dataframe.DataFrame.num_rows() -> intReturns the number of rows in the data frame.
class
src.oracledb.driver_mode.DriverModeManagerManages the mode the driver is using.
class
src.oracledb.exceptions.ProgrammingErrorException raised for programming errors.
class
src.oracledb.exceptions.WarningException raised for warnings.
class
src.oracledb.fetch_info.FetchInfoIdentifies metadata of columns that are being fetched.
method
src.oracledb.pipeline.Pipeline.add_commit() -> PipelineOpAdds an operation that performs a commit.
func
src.oracledb.plugins.aws_config_provider.config_awss3_hook(protocol:str, protocol_arg:str, connect_params:oracledb.ConnectParams) -> NoneHook for handling parameters stored in AWS S3.
method
src.oracledb.pool.AsyncConnectionPool.release(connection:'connection_module.AsyncConnection', tag:str | None=None) -> NoneReleases the connection back to the pool now.
method
src.oracledb.pool_params.PoolParams.copy() -> 'PoolParams'Creates a copy of the parameters and returns it.
method
src.oracledb.pool_params.PoolParams.getmode() -> oracledb.PoolGetModeHow pool.acquire() will behave.
func
src.oracledb.secret_values.clear_all_secrets(*thread_local:bool=False) -> NoneClears all secrets stored in the cache.
func
src.oracledb.secret_values.get_secret(key:Any, *thread_local:bool=False) -> SecretValue | NoneReturns a secret stored in the cache.
class
src.oracledb.sparse_vector.SparseVectorProvides information about sparse vectors.
method
src.oracledb.sparse_vector.SparseVector.values() -> array.arrayReturns the non-zero values stored in the vector.
method
src.oracledb.subscr.Message.consumerName() -> str | NoneDeprecated.
method
src.oracledb.subscr.Message.queueName() -> str | NoneDeprecated.
method
src.oracledb.subscr.Subscription.ipAddress() -> strDeprecated.
func
src.oracledb.utils.normalize_sessionless_transaction_id(value:bytes | str | None=None) -> bytesNormalize and validate the transaction_id.
method
src.oracledb.var.Var.actualElements() -> intDeprecated.
method
src.oracledb.var.Var.bufferSize() -> intDeprecated.
method
src.oracledb.var.Var.getvalue(pos:int=0) -> AnyReturns the value at the given position in the variable.
method
src.oracledb.var.Var.numElements() -> intDeprecated.
method
src.oracledb.var.Var.setvalue(pos:int, value:Any) -> NoneSets the value at the given position in the variable.
method
src.oracledb.var.Var.size() -> intThis read-only attribute returns the size of the variable.
method
utils.templates.connection.AsyncConnection.begin_sessionless_transaction(transaction_id:str | bytes | None=None, timeout:int=60, defer_round_trip:bool=False) -> bytesBegins a new sessionless transaction.
method
utils.templates.connection.AsyncConnection.callproc(name:str, parameters:list | tuple | None=None, keyword_parameters:dict | None=None) -> listCalls a PL/SQL procedure with the given name.
method
utils.templates.connection.AsyncConnection.close() -> NoneCloses the connection.
method
utils.templates.connection.AsyncConnection.commit() -> NoneCommits any pending transaction to the database.
method
utils.templates.connection.AsyncConnection.execute(statement:str, parameters:list | tuple | dict | None=None) -> NoneExecutes a statement against the database.
method
utils.templates.connection.AsyncConnection.gettype(name:str) -> DbObjectTypeReturns a type object given its name.
method
utils.templates.connection.AsyncConnection.rollback() -> NoneRolls back any pending transaction.
method
utils.templates.connection.AsyncConnection.tpc_commit(xid:Xid | None=None, one_phase:bool=False) -> NoneCommits a global transaction.
method
utils.templates.connection.AsyncConnection.tpc_end(xid:Xid | None=None, flags:int=oracledb.TPC_END_NORMAL) -> NoneEnds or suspends work on a global transaction.
method
utils.templates.connection.AsyncConnection.tpc_prepare(xid:Xid | None=None) -> boolPrepares a two-phase transaction for commit.
method
utils.templates.connection.AsyncConnection.tpc_rollback(xid:Xid | None=None) -> NoneRolls back a global transaction.
method
utils.templates.connection.BaseConnection.cancel() -> NoneBreaks a long-running statement.
method
utils.templates.connection.Connection.begin(format_id:int=-1, transaction_id:str='', branch_id:str='') -> NoneExplicitly begins a new transaction.
method
utils.templates.connection.Connection.begin_sessionless_transaction(transaction_id:str | bytes | None=None, timeout:int=60, defer_round_trip:bool=False) -> bytesBegins a new sessionless transaction.
method
utils.templates.connection.Connection.callTimeout() -> intDeprecated.
method
utils.templates.connection.Connection.commit() -> NoneCommits any pending transactions to the database.
method
utils.templates.connection.Connection.gettype(name:str) -> DbObjectTypeReturns a type object given its name.
method
utils.templates.connection.Connection.maxBytesPerCharacter() -> intDeprecated.
method
utils.templates.connection.Connection.rollback() -> NoneRolls back any pending transactions.
method
utils.templates.connection.Connection.shutdown(mode:int=0) -> NoneShuts down the database.
method
utils.templates.connection.Connection.startup(force:bool=False, restrict:bool=False, pfile:str | None=None) -> NoneStarts up the database.
method
utils.templates.connection.Connection.tpc_commit(xid:Xid | None=None, one_phase:bool=False) -> NoneCommits a global transaction.
method
utils.templates.connection.Connection.tpc_end(xid:Xid | None=None, flags:int=oracledb.TPC_END_NORMAL) -> NoneEnds or suspends work on a global transaction.
method
utils.templates.connection.Connection.tpc_prepare(xid:Xid | None=None) -> boolPrepares a two-phase transaction for commit.
method
utils.templates.pool.AsyncConnectionPool.release(connection:'connection_module.AsyncConnection', tag:str | None=None) -> NoneReleases the connection back to the pool now.
method
utils.templates.pool_params.PoolParams.copy() -> 'PoolParams'Creates a copy of the parameters and returns it.
method
utils.templates.pool_params.PoolParams.set()All parameters are optional.
この情報について
掲載しているシグネチャは oracle/python-oracledb の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。