@@ -160,10 +160,10 @@ AsyncConnection Methods
160
160
rowfactory=None)
161
161
162
162
Executes a query and returns the first row of the result set if one exists
163
- (or None if no rows exist).
163
+ (or * None * if no rows exist).
164
164
165
165
Internally, this method's :attr: `Cursor.prefetchrows ` and
166
- :attr: `Cursor.arraysize ` sizes will be set to 1 .
166
+ :attr: `Cursor.arraysize ` sizes will be set to * 1 * .
167
167
168
168
Since only one fetch is performed for a query, consider adding a ``WHERE ``
169
169
condition or using a ``FETCH NEXT `` clause in the statement to prevent the
@@ -191,8 +191,8 @@ AsyncConnection Methods
191
191
existing standalone connection. Pooled connections internally perform this
192
192
check before returning a connection to the application.
193
193
194
- If this function returns False, the connection should be not be used by the
195
- application and a new connection should be established instead.
194
+ If this function returns * False * , the connection should be not be used by
195
+ the application and a new connection should be established instead.
196
196
197
197
This function performs a local check. To fully check a connection's health,
198
198
use :meth: `AsyncConnection.ping() ` which performs a :ref: `round-trip
@@ -214,11 +214,11 @@ AsyncConnection Methods
214
214
215
215
The ``continue_on_error `` parameter determines whether operations should
216
216
continue to run after an error has occurred. If this parameter is set to
217
- True, then the :attr: `PipelineOpResult.error ` attribute will be populated
217
+ * True * , then the :attr: `PipelineOpResult.error ` attribute will be populated
218
218
with an :ref: `_Error <exchandling >` instance which identifies the error
219
- that occurred. If this parameter is set to False, then an exception will be
220
- raised as soon as an error is detected and all subsequent operations will
221
- be terminated. The default value is False.
219
+ that occurred. If this parameter is set to * False * , then an exception will
220
+ be raised as soon as an error is detected and all subsequent operations
221
+ will be terminated. The default value is * False * .
222
222
223
223
See :ref: `pipelining ` for more information.
224
224
@@ -258,7 +258,7 @@ AsyncConnection Methods
258
258
transaction can be inactive before it is automatically terminated by the
259
259
system. A transaction is inactive between the time it is detached with
260
260
:meth: `AsyncConnection.tpc_end() ` and the time it is resumed with
261
- :meth: `AsyncConnection.tpc_begin() `.The default is 0 seconds.
261
+ :meth: `AsyncConnection.tpc_begin() `.The default is * 0 * seconds.
262
262
263
263
The following code sample demonstrates the ``tpc_begin() `` function::
264
264
@@ -284,8 +284,8 @@ AsyncConnection Methods
284
284
transaction and is intended for use in recovery.
285
285
286
286
The ``one_phase `` parameter is a boolean identifying whether to perform a
287
- one-phase or two-phase commit. If ``one_phase `` parameter is True, a
288
- single-phase commit is performed. The default value is False. This
287
+ one-phase or two-phase commit. If ``one_phase `` parameter is * True * , a
288
+ single-phase commit is performed. The default value is * False * . This
289
289
parameter is only examined if a value is provided for the ``xid ``
290
290
parameter. Otherwise, the driver already knows whether
291
291
:meth: `~AsyncConnection.tpc_prepare() ` was called for the transaction and
@@ -356,8 +356,8 @@ AsyncConnection Methods
356
356
``ORA-24756: transaction does not exist ``.
357
357
358
358
If an ``xid `` parameter is passed, then an object should be returned by the
359
- :meth: `~Connection.xid() ` function. If an xid parameter is not passed, then
360
- the transaction identifier used by the previous
359
+ :meth: `~Connection.xid() ` function. If an `` xid `` parameter is not passed,
360
+ then the transaction identifier used by the previous
361
361
:meth: `~AsyncConnection.tpc_begin() ` is used.
362
362
363
363
The following code sample demonstrates the ``tpc_prepare() `` function::
@@ -417,7 +417,7 @@ AsyncConnection Attributes
417
417
.. attribute :: AsyncConnection.action
418
418
419
419
This write-only attribute sets the ACTION column in the V$SESSION view. It
420
- is a string attribute but the value None is accepted and treated as an
420
+ is a string attribute but the value * None * is accepted and treated as an
421
421
empty string.
422
422
423
423
.. attribute :: AsyncConnection.autocommit
@@ -430,10 +430,10 @@ AsyncConnection Attributes
430
430
431
431
This read-write attribute specifies the amount of time (in milliseconds)
432
432
that a single round-trip to the database may take before a timeout will
433
- occur. A value of 0 means that no timeout will take place.
433
+ occur. A value of * 0 * means that no timeout will take place.
434
434
435
- If a timeout occurs, the error * DPI-1067 * will be returned if the
436
- connection is still usable. Alternatively the error * DPI-1080 * will be
435
+ If a timeout occurs, the error `` DPI-1067 `` will be returned if the
436
+ connection is still usable. Alternatively, the error `` DPI-1080 `` will be
437
437
returned if the connection has become invalid and can no longer be used.
438
438
439
439
.. attribute :: AsyncConnection.client_identifier
@@ -498,9 +498,10 @@ AsyncConnection Attributes
498
498
This read-write attribute specifies a method called for each value that is
499
499
bound to a statement executed on any cursor associated with this
500
500
connection. The method signature is handler(cursor, value, arraysize) and
501
- the return value is expected to be a variable object or None in which case
502
- a default variable object will be created. If this attribute is None, the
503
- default behavior will take place for all values bound to statements.
501
+ the return value is expected to be a variable object or *None * in which
502
+ case a default variable object will be created. If this attribute is
503
+ *None *, the default behavior will take place for all values bound to
504
+ statements.
504
505
505
506
.. attribute :: AsyncConnection.instance_name
506
507
@@ -545,15 +546,15 @@ AsyncConnection Attributes
545
546
546
547
This write-only attribute sets the MODULE column in the V$SESSION view.
547
548
The maximum length for this string is 48 and if you exceed this length you
548
- will get ORA-24960.
549
+ will get `` ORA-24960 `` .
549
550
550
551
.. attribute :: AsyncConnection.outputtypehandler
551
552
552
553
This read-write attribute specifies a method called for each column that is
553
554
going to be fetched from any cursor associated with this connection. The
554
555
method signature is ``handler(cursor, metadata) `` and the return value is
555
- expected to be a :ref: `variable object<varobj> ` or None in which case a
556
- default variable object will be created. If this attribute is None, the
556
+ expected to be a :ref: `variable object <varobj >` or * None * in which case a
557
+ default variable object will be created. If this attribute is * None * , the
557
558
default behavior will take place for all columns fetched from cursors.
558
559
559
560
See :ref: `outputtypehandlers `.
@@ -615,15 +616,15 @@ AsyncConnection Attributes
615
616
value can make a significant difference in performance if you have a small
616
617
number of statements that you execute repeatedly.
617
618
618
- The default value is 20 .
619
+ The default value is * 20 * .
619
620
620
621
See :ref: `Statement Caching <stmtcache >` for more information.
621
622
622
623
.. attribute :: AsyncConnection.thin
623
624
624
625
This read-only attribute returns a boolean indicating if the connection was
625
- established with the python-oracledb Thin mode (True) or python-oracledb
626
- Thick mode (False).
626
+ established with the python-oracledb Thin mode (* True * ) or python-oracledb
627
+ Thick mode (* False * ).
627
628
628
629
.. attribute :: AsyncConnection.transaction_in_progress
629
630
0 commit comments