Skip to content

Commit 6989c1f

Browse files
Documentation improvements.
1 parent 52d8364 commit 6989c1f

18 files changed

+735
-696
lines changed

doc/src/api_manual/aq.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Queue Methods
2525

2626
Dequeues up to the specified number of messages from the queue and returns
2727
a list of these messages. Each element of the returned list is a
28-
:ref:`message property<msgproperties>` object.
28+
:ref:`message property <msgproperties>` object.
2929

3030
For consistency and compliance with the PEP 8 naming style, the name of
3131
the method was changed from `deqMany()`. The old name will continue to
@@ -34,8 +34,8 @@ Queue Methods
3434
.. method:: Queue.deqone()
3535

3636
Dequeues at most one message from the queue. If a message is dequeued, it
37-
will be a :ref:`message property<msgproperties>` object; otherwise, it will
38-
be the value None.
37+
will be a :ref:`message property <msgproperties>` object; otherwise, it will
38+
be the value *None*.
3939

4040
For consistency and compliance with the PEP 8 naming style, the name of
4141
the method was changed from `deqOne()`. The old name will continue to
@@ -85,7 +85,7 @@ Queue Attributes
8585
<deqoptions>` that will be used when dequeuing messages from the queue.
8686

8787
For consistency and compliance with the PEP 8 naming style, the name of
88-
the attribute was changed from `deqOptions`. The old name will continue
88+
the attribute was changed from ``deqOptions``. The old name will continue
8989
to work for a period of time.
9090

9191
.. attribute:: Queue.enqoptions
@@ -94,7 +94,7 @@ Queue Attributes
9494
<enqoptions>` that will be used when enqueuing messages into the queue.
9595

9696
For consistency and compliance with the PEP 8 naming style, the name of
97-
the attribute was changed from `enqOptions`. The old name will continue
97+
the attribute was changed from ``enqOptions``. The old name will continue
9898
to work for a period of time.
9999

100100
.. attribute:: Queue.name
@@ -105,10 +105,10 @@ Queue Attributes
105105

106106
This read-only attribute returns the object type for payloads that can be
107107
enqueued and dequeued. If using a JSON queue, this returns the value
108-
``"JSON"``. If using a raw queue, this returns the value ``None``.
108+
``"JSON"``. If using a raw queue, this returns the value *None*.
109109

110110
For consistency and compliance with the PEP 8 naming style, the name of
111-
the attribute was changed from `payloadType`. The old name will
111+
the attribute was changed from ``payloadType``. The old name will
112112
continue to work for a period of time.
113113

114114

@@ -311,7 +311,7 @@ Message Properties
311311

312312
This read-only attribute specifies the id of the message in the last queue
313313
that enqueued or dequeued the message. If the message has never been
314-
dequeued or enqueued, the value will be `None`.
314+
dequeued or enqueued, the value will be *None*.
315315

316316

317317
.. attribute:: MessageProperties.payload
@@ -327,7 +327,7 @@ Message Properties
327327

328328
This read-write attribute specifies the priority of the message. A smaller
329329
number indicates a higher priority. The priority can be any integer, including
330-
negative numbers. The default value is zero.
330+
negative numbers. The default value is *0*.
331331

332332

333333
.. attribute:: MessageProperties.state

doc/src/api_manual/async_connection.rst

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ AsyncConnection Methods
160160
rowfactory=None)
161161

162162
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).
164164

165165
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*.
167167

168168
Since only one fetch is performed for a query, consider adding a ``WHERE``
169169
condition or using a ``FETCH NEXT`` clause in the statement to prevent the
@@ -191,8 +191,8 @@ AsyncConnection Methods
191191
existing standalone connection. Pooled connections internally perform this
192192
check before returning a connection to the application.
193193

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.
196196

197197
This function performs a local check. To fully check a connection's health,
198198
use :meth:`AsyncConnection.ping()` which performs a :ref:`round-trip
@@ -214,11 +214,11 @@ AsyncConnection Methods
214214

215215
The ``continue_on_error`` parameter determines whether operations should
216216
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
218218
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*.
222222

223223
See :ref:`pipelining` for more information.
224224

@@ -258,7 +258,7 @@ AsyncConnection Methods
258258
transaction can be inactive before it is automatically terminated by the
259259
system. A transaction is inactive between the time it is detached with
260260
: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.
262262

263263
The following code sample demonstrates the ``tpc_begin()`` function::
264264

@@ -284,8 +284,8 @@ AsyncConnection Methods
284284
transaction and is intended for use in recovery.
285285

286286
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
289289
parameter is only examined if a value is provided for the ``xid``
290290
parameter. Otherwise, the driver already knows whether
291291
:meth:`~AsyncConnection.tpc_prepare()` was called for the transaction and
@@ -356,8 +356,8 @@ AsyncConnection Methods
356356
``ORA-24756: transaction does not exist``.
357357

358358
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
361361
:meth:`~AsyncConnection.tpc_begin()` is used.
362362

363363
The following code sample demonstrates the ``tpc_prepare()`` function::
@@ -417,7 +417,7 @@ AsyncConnection Attributes
417417
.. attribute:: AsyncConnection.action
418418

419419
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
421421
empty string.
422422

423423
.. attribute:: AsyncConnection.autocommit
@@ -430,10 +430,10 @@ AsyncConnection Attributes
430430

431431
This read-write attribute specifies the amount of time (in milliseconds)
432432
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.
434434

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
437437
returned if the connection has become invalid and can no longer be used.
438438

439439
.. attribute:: AsyncConnection.client_identifier
@@ -498,9 +498,10 @@ AsyncConnection Attributes
498498
This read-write attribute specifies a method called for each value that is
499499
bound to a statement executed on any cursor associated with this
500500
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.
504505

505506
.. attribute:: AsyncConnection.instance_name
506507

@@ -545,15 +546,15 @@ AsyncConnection Attributes
545546

546547
This write-only attribute sets the MODULE column in the V$SESSION view.
547548
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``.
549550

550551
.. attribute:: AsyncConnection.outputtypehandler
551552

552553
This read-write attribute specifies a method called for each column that is
553554
going to be fetched from any cursor associated with this connection. The
554555
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
557558
default behavior will take place for all columns fetched from cursors.
558559

559560
See :ref:`outputtypehandlers`.
@@ -615,15 +616,15 @@ AsyncConnection Attributes
615616
value can make a significant difference in performance if you have a small
616617
number of statements that you execute repeatedly.
617618

618-
The default value is 20.
619+
The default value is *20*.
619620

620621
See :ref:`Statement Caching <stmtcache>` for more information.
621622

622623
.. attribute:: AsyncConnection.thin
623624

624625
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*).
627628

628629
.. attribute:: AsyncConnection.transaction_in_progress
629630

doc/src/api_manual/async_connection_pool.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ AsyncConnectionPool Attributes
124124
closed. They become candidates for termination only when they are released
125125
back to the pool and have existed for longer than max_lifetime_session
126126
seconds. Note that termination only occurs when the pool is accessed. A
127-
value of 0 means that there is no maximum length of time that a pooled
127+
value of *0* means that there is no maximum length of time that a pooled
128128
connection may exist. This attribute is only available in Oracle Database
129129
12.1 or later.
130130

@@ -158,11 +158,11 @@ AsyncConnectionPool Attributes
158158
<roundtrips>` ping to the database is performed. If the connection is
159159
unusable, it is discarded and a different connection is selected to be
160160
returned by :meth:`AsyncConnectionPool.acquire()`. Setting
161-
``ping_interval`` to a negative value disables pinging. Setting it to 0
161+
``ping_interval`` to a negative value disables pinging. Setting it to *0*
162162
forces a ping for every :meth:`AsyncConnectionPool.acquire()` and is not
163163
recommended.
164164

165-
Prior to cx_Oracle 8.2, the ping interval was fixed at 60 seconds.
165+
Prior to cx_Oracle 8.2, the ping interval was fixed at *60* seconds.
166166

167167
.. attribute:: AsyncConnectionPool.soda_metadata_cache
168168

@@ -175,23 +175,23 @@ AsyncConnectionPool Attributes
175175
This read-write attribute specifies the size of the statement cache that
176176
will be used for connections obtained from the pool. Once a connection is
177177
created, that connection’s statement cache size can only be changed by
178-
setting the stmtcachesize attribute on the connection itself.
178+
setting the ``stmtcachesize`` attribute on the connection itself.
179179

180180
See :ref:`Statement Caching <stmtcache>` for more information.
181181

182182
.. attribute:: AsyncConnectionPool.thin
183183

184184
This attribute returns a boolean which indicates the python-oracledb mode
185-
in which the pool was created. If the value of this attribute is True, it
185+
in which the pool was created. If the value of this attribute is *True*, it
186186
indicates that the pool was created in the python-oracledb Thin mode. If
187-
the value of this attribute is False, it indicates that the pool was created
188-
in the python-oracledb Thick mode.
187+
the value of this attribute is *False*, it indicates that the pool was
188+
created in the python-oracledb Thick mode.
189189

190190
.. attribute:: AsyncConnectionPool.timeout
191191

192192
This read-write attribute specifies the time (in seconds) after which idle
193193
connections will be terminated in order to maintain an optimum number of
194-
open connections. A value of 0 means that no idle connections are
194+
open connections. A value of *0* means that no idle connections are
195195
terminated.
196196

197197
.. attribute:: AsyncConnectionPool.username

0 commit comments

Comments
 (0)