Module Interface

cx_Oracle_async.DEQ_NO_WAIT

This constant is used to specify that dequeue not wait for messages to be available for dequeuing.

New in version 0.2.0.

cx_Oracle_async.DEQ_WAIT_FOREVER

This constant is used to specify that dequeue should wait forever for messages to be available for dequeuing. This is the default value.

New in version 0.2.0.

cx_Oracle_async.makedsn(host, port, sid=None, service_name=None)

Return a string suitable for use as the dsn parameter for create_pool(). This string is identical to the strings that are defined by the Oracle names server or defined in the tnsnames.ora file.

Note

This method is an extension to the cx_Oracle’s DB API definition.

cx_Oracle_async.create_pool(user=None, password=None, dsn=None, min=2, max=4, increment=1, connectiontype=cx_Oracle.Connection, threaded=True, getmode=cx_Oracle.SPOOL_ATTRVAL_NOWAIT, events=False, homogeneous=True, externalauth=False, encoding='UTF-8', edition=None, timeout=0, waitTimeout=0, maxLifetimeSession=0, sessionCallback=None, maxSessionsPerShard=0)

Create and return a AsyncPoolWrapper object which wraps a cx_Oracle.SessionPool.

Different from the original library , threaded is set to True by default , and encoding is set to UTF-8.

Note

This method is an extension to cx_Oracle’s DB API definition.