Skip to content

Commit 261dcd0

Browse files
Documentation improvements.
1 parent 9d84126 commit 261dcd0

File tree

3 files changed

+55
-39
lines changed

3 files changed

+55
-39
lines changed

doc/src/_ext/table_with_summary.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -----------------------------------------------------------------------------
2-
# Copyright (c) 2022, Oracle and/or its affiliates.
2+
# Copyright (c) 2022, 2024, Oracle and/or its affiliates.
33
#
44
# This software is dual-licensed to you under the Universal Permissive License
55
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
@@ -50,6 +50,22 @@ def run(self):
5050

5151

5252
class HTMLTranslator(sphinx.writers.html5.HTML5Translator):
53+
def visit_paragraph(self, node):
54+
children = node.children
55+
if len(children) == 1 and children[0].astext() == "No relevant notes":
56+
atts = {
57+
"style": "clip: rect(1px, 1px, 1px, 1px);"
58+
"clip-path: inset(50%);"
59+
"height: 1px;"
60+
"overflow: hidden;"
61+
"position: absolute;"
62+
"white-space: nowrap;"
63+
"width: 1px;"
64+
}
65+
self.body.append(self.starttag(node, "p", "", **atts))
66+
else:
67+
super().visit_paragraph(node)
68+
5369
def visit_table(self, node):
5470
if version.parse(sphinx.__version__) > version.parse("4.2.0"):
5571
self._table_row_indices = [0]

doc/src/user_guide/appendix_a.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -358,111 +358,111 @@ values.
358358
- Supported Python Types
359359
* - VARCHAR2
360360
- :data:`~oracledb.DB_TYPE_VARCHAR`
361-
-
361+
- No relevant notes
362362
- bytes, str
363363
* - NVARCHAR2
364364
- :data:`~oracledb.DB_TYPE_NVARCHAR`
365-
-
365+
- No relevant notes
366366
- bytes, str
367367
* - NUMBER, FLOAT
368368
- :data:`~oracledb.DB_TYPE_NUMBER`
369-
-
369+
- No relevant notes
370370
- bool, int, float, decimal.Decimal
371371
* - DATE
372372
- :data:`~oracledb.DB_TYPE_DATE`
373-
-
373+
- No relevant notes
374374
- datetime.date, datetime.datetime
375375
* - BOOLEAN (PL/SQL and Oracle Database 23c SQL)
376376
- :data:`~oracledb.DB_TYPE_BOOLEAN`
377-
-
377+
- No relevant notes
378378
- Any type convertible to bool
379379
* - BINARY_DOUBLE
380380
- :data:`~oracledb.DB_TYPE_BINARY_DOUBLE`
381-
-
381+
- No relevant notes
382382
- bool, int, float, decimal.Decimal
383383
* - BINARY_FLOAT
384384
- :data:`~oracledb.DB_TYPE_BINARY_FLOAT`
385-
-
385+
- No relevant notes
386386
- bool, int, float, decimal.Decimal
387387
* - TIMESTAMP
388388
- :data:`~oracledb.DB_TYPE_TIMESTAMP`
389-
-
389+
- No relevant notes
390390
- datetime.date, datetime.datetime
391391
* - TIMESTAMP WITH TIME ZONE
392392
- :data:`~oracledb.DB_TYPE_TIMESTAMP_TZ`
393-
-
393+
- No relevant notes
394394
- datetime.date, datetime.datetime
395395
* - TIMESTAMP WITH LOCAL TIME ZONE
396396
- :data:`~oracledb.DB_TYPE_TIMESTAMP_LTZ`
397-
-
397+
- No relevant notes
398398
- datetime.date, datetime.datetime
399399
* - INTERVAL YEAR TO MONTH
400400
- :data:`~oracledb.DB_TYPE_INTERVAL_YM`
401401
- Not supported in python-oracledb.
402402
- Cannot be set
403403
* - INTERVAL DAY TO SECOND
404404
- :data:`~oracledb.DB_TYPE_INTERVAL_DS`
405-
-
405+
- No relevant notes
406406
- datetime.timedelta
407407
* - RAW
408408
- :data:`~oracledb.DB_TYPE_RAW`
409-
-
409+
- No relevant notes
410410
- bytes, str
411411
* - LONG
412412
- :data:`~oracledb.DB_TYPE_LONG`
413-
-
413+
- No relevant notes
414414
- bytes, str
415415
* - LONG RAW
416416
- :data:`~oracledb.DB_TYPE_LONG_RAW`
417-
-
417+
- No relevant notes
418418
- bytes, str
419419
* - ROWID
420420
- :data:`~oracledb.DB_TYPE_ROWID`
421-
-
421+
- No relevant notes
422422
- bytes, str
423423
* - UROWID
424424
- :data:`~oracledb.DB_TYPE_ROWID`, :data:`~oracledb.DB_TYPE_UROWID` (only supported in python-oracledb Thin mode)
425425
- May show :data:`~oracledb.DB_TYPE_UROWID` in metadata. See :ref:`Query Metadata Differences <querymetadatadiff>`.
426426
- bytes, str
427427
* - CHAR
428428
- :data:`~oracledb.DB_TYPE_CHAR`
429-
-
429+
- No relevant notes
430430
- bytes, str
431431
* - BLOB
432432
- :data:`~oracledb.DB_TYPE_BLOB`
433-
-
433+
- No relevant notes
434434
- :ref:`oracledb.LOB <lobobj>`, bytes, str
435435
* - CLOB
436436
- :data:`~oracledb.DB_TYPE_CLOB`
437-
-
437+
- No relevant notes
438438
- :ref:`oracledb.LOB <lobobj>`, bytes, str
439439
* - NCHAR
440440
- :data:`~oracledb.DB_TYPE_NCHAR`
441-
-
441+
- No relevant notes
442442
- bytes, str
443443
* - NCLOB
444444
- :data:`~oracledb.DB_TYPE_NCLOB`, :data:`~oracledb.DB_TYPE_LONG_NVARCHAR` (if fetching NCLOB as a string)
445-
-
445+
- No relevant notes
446446
- :ref:`oracledb.LOB <lobobj>`, bytes, str
447447
* - BFILE
448448
- :data:`~oracledb.DB_TYPE_BFILE`
449449
- Not supported in python-oracledb Thin mode.
450450
- Cannot be set
451451
* - JSON
452452
- :data:`~oracledb.DB_TYPE_JSON`
453-
-
453+
- No relevant notes
454454
- Any type convertible to Oracle JSON
455455
* - REF CURSOR (PL/SQL OR nested cursor)
456456
- :data:`~oracledb.DB_TYPE_CURSOR`
457-
-
457+
- No relevant notes
458458
- :ref:`oracledb.Cursor <cursorobj>`
459459
* - PLS_INTEGER
460460
- :data:`~oracledb.DB_TYPE_BINARY_INTEGER`
461-
-
461+
- No relevant notes
462462
- bool, int, float, decimal.Decimal
463463
* - BINARY_INTEGER
464464
- :data:`~oracledb.DB_TYPE_BINARY_INTEGER`
465-
-
465+
- No relevant notes
466466
- bool, int, float, decimal.Decimal
467467
* - REF
468468
- n/a
@@ -474,7 +474,7 @@ values.
474474
- bytes, str
475475
* - User-defined types (object type, VARRAY, records, collections, SDO_*types)
476476
- :data:`~oracledb.DB_TYPE_OBJECT`
477-
-
477+
- No relevant notes
478478
- OBJECT of specific type
479479

480480
Binding of contiguous PL/SQL Index-by BINARY_INTEGER arrays of string, number, and date are

doc/src/user_guide/appendix_b.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,43 +109,43 @@ used in :meth:`oracledb.connect()`, :meth:`oracledb.create_pool()`,
109109
- Used in Easy Connect Strings. It is same as ``MY_WALLET_DIRECTORY`` in a connect descriptor.
110110
* - MY_WALLET_DIRECTORY
111111
- wallet_location
112-
-
112+
- No relevant notes
113113
* - EXPIRE_TIME
114114
- expire_time
115-
-
115+
- No relevant notes
116116
* - HTTPS_PROXY
117117
- https_proxy
118-
-
118+
- No relevant notes
119119
* - HTTPS_PROXY_PORT
120120
- https_proxy_port
121-
-
121+
- No relevant notes
122122
* - RETRY_COUNT
123123
- retry_count
124-
-
124+
- No relevant notes
125125
* - RETRY_DELAY
126126
- retry_delay
127-
-
127+
- No relevant notes
128128
* - TRANSPORT_CONNECT_TIMEOUT
129129
- tcp_connect_timeout
130-
-
130+
- No relevant notes
131131
* - POOL_CONNECTION_CLASS
132132
- cclass
133-
-
133+
- No relevant notes
134134
* - POOL_PURITY
135135
- purity
136-
-
136+
- No relevant notes
137137
* - SERVICE_NAME
138138
- service_name
139-
-
139+
- No relevant notes
140140
* - SID
141141
- sid
142-
-
142+
- No relevant notes
143143
* - PORT
144144
- port
145-
-
145+
- No relevant notes
146146
* - PROTOCOL
147147
- protocol
148-
-
148+
- No relevant notes
149149

150150
In python-oracledb Thin mode, using the ``POOL_CONNECTION_CLASS`` or
151151
``POOL_PURITY`` parameters in a connection string is similar to setting the

0 commit comments

Comments
 (0)