Skip to content

Commit 857fafa

Browse files
Ensure defaults are included on a separate line in order to avoid having
a trailing colon, which is treated specially with RST.
1 parent cd28b18 commit 857fafa

File tree

5 files changed

+465
-259
lines changed

5 files changed

+465
-259
lines changed

src/oracledb/connect_params.py

Lines changed: 88 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,24 @@ def __init__(
114114
All parameters are optional. A brief description of each parameter
115115
follows:
116116
117-
- user: the name of the user to connect to (default: None)
117+
- user: the name of the user to connect to
118+
(default: None)
118119
119120
- proxy_user: the name of the proxy user to connect to. If this value
120121
is not specified, it will be parsed out of user if user is in the
121-
form "user[proxy_user]" (default: None)
122+
form "user[proxy_user]"
123+
(default: None)
122124
123-
- password: the password for the user (default: None)
125+
- password: the password for the user
126+
(default: None)
124127
125128
- newpassword: the new password for the user. The new password will
126129
take effect immediately upon a successful connection to the database
127130
(default: None)
128131
129132
- wallet_password: the password to use to decrypt the wallet, if it is
130-
encrypted. This value is only used in thin mode (default: None)
133+
encrypted. This value is only used in thin mode
134+
(default: None)
131135
132136
- access_token: expected to be a string or a 2-tuple or a callable. If
133137
it is a string, it specifies an Azure AD OAuth2 token used for Open
@@ -138,10 +142,12 @@ def __init__(
138142
either a string or a 2-tuple used for OAuth 2.0 or OCI IAM token
139143
based authentication and is useful when the pool needs to expand and
140144
create new connections but the current authentication token has
141-
expired (default: None)
145+
expired
146+
(default: None)
142147
143148
- host: the name or IP address of the machine hosting the database or
144-
the database listener (default: None)
149+
the database listener
150+
(default: None)
145151
146152
- port: the port number on which the database listener is listening
147153
(default: 1521)
@@ -151,86 +157,105 @@ def __init__(
151157
(default: "tcp")
152158
153159
- https_proxy: the name or IP address of a proxy host to use for
154-
tunneling secure connections (default: None)
160+
tunneling secure connections
161+
(default: None)
155162
156163
- https_proxy_port: the port on which to communicate with the proxy
157-
host (default: 0)
164+
host
165+
(default: 0)
158166
159-
- service_name: the service name of the database (default: None)
167+
- service_name: the service name of the database
168+
(default: None)
160169
161-
- instance_name: the instance name of the database (default: None)
170+
- instance_name: the instance name of the database
171+
(default: None)
162172
163173
- sid: the system identifier (SID) of the database. Note using a
164-
service_name instead is recommended (default: None)
174+
service_name instead is recommended
175+
(default: None)
165176
166177
- server_type: the type of server connection that should be
167178
established. If specified, it should be one of "dedicated", "shared"
168-
or "pooled" (default: None)
179+
or "pooled"
180+
(default: None)
169181
170182
- cclass: connection class to use for Database Resident Connection
171-
Pooling (DRCP) (default: None)
183+
Pooling (DRCP)
184+
(default: None)
172185
173186
- purity: purity to use for Database Resident Connection Pooling (DRCP)
174187
(default: oracledb.PURITY_DEFAULT)
175188
176189
- expire_time: an integer indicating the number of minutes between the
177190
sending of keepalive probes. If this parameter is set to a value
178-
greater than zero it enables keepalive (default: 0)
191+
greater than zero it enables keepalive
192+
(default: 0)
179193
180194
- retry_count: the number of times that a connection attempt should be
181-
retried before the attempt is terminated (default: 0)
195+
retried before the attempt is terminated
196+
(default: 0)
182197
183198
- retry_delay: the number of seconds to wait before making a new
184-
connection attempt (default: 1)
199+
connection attempt
200+
(default: 1)
185201
186202
- tcp_connect_timeout: a float indicating the maximum number of seconds
187-
to wait for establishing a connection to the database host (default:
188-
20.0)
203+
to wait for establishing a connection to the database host
204+
(default: 20.0)
189205
190206
- ssl_server_dn_match: boolean indicating whether the server
191207
certificate distinguished name (DN) should be matched in addition to
192208
the regular certificate verification that is performed. Note that if
193209
the ssl_server_cert_dn parameter is not privided, host name matching
194-
is performed instead (default: True)
210+
is performed instead
211+
(default: True)
195212
196213
- ssl_server_cert_dn: the distinguished name (DN) which should be
197214
matched with the server. This value is ignored if the
198215
ssl_server_dn_match parameter is not set to the value True. If
199216
specified this value is used for any verfication. Otherwise the
200-
hostname will be used (default: None)
217+
hostname will be used
218+
(default: None)
201219
202220
- wallet_location: the directory where the wallet can be found. In thin
203221
mode this must be the directory containing the PEM-encoded wallet
204222
file ewallet.pem. In thick mode this must be the directory containing
205-
the file cwallet.sso (default: None)
223+
the file cwallet.sso
224+
(default: None)
206225
207226
- events: boolean specifying whether events mode should be enabled.
208227
This value is only used in thick mode and is needed for continuous
209228
query notification and high availability event notifications
210229
(default: False)
211230
212231
- externalauth: a boolean indicating whether to use external
213-
authentication (default: False)
232+
authentication
233+
(default: False)
214234
215235
- mode: authorization mode to use. For example
216-
oracledb.AUTH_MODE_SYSDBA (default: oracledb.AUTH_MODE_DEFAULT)
236+
oracledb.AUTH_MODE_SYSDBA
237+
(default: oracledb.AUTH_MODE_DEFAULT)
217238
218239
- disable_oob: boolean indicating whether out-of-band breaks should be
219240
disabled. This value is only used in thin mode. It has no effect on
220-
Windows which does not support this functionality (default: False)
241+
Windows which does not support this functionality
242+
(default: False)
221243
222244
- stmtcachesize: identifies the initial size of the statement cache
223245
(default: oracledb.defaults.stmtcachesize)
224246
225247
- edition: edition to use for the connection. This parameter cannot be
226-
used simultaneously with the cclass parameter (default: None)
248+
used simultaneously with the cclass parameter
249+
(default: None)
227250
228251
- tag: identifies the type of connection that should be returned from a
229-
pool. This value is only used in thick mode (default: None)
252+
pool. This value is only used in thick mode
253+
(default: None)
230254
231255
- matchanytag: boolean specifying whether any tag can be used when
232256
acquiring a connection from the pool. This value is only used in
233-
thick mode (default: False)
257+
thick mode
258+
(default: False)
234259
235260
- config_dir: directory in which the optional tnsnames.ora
236261
configuration file is located. This value is only used in thin mode.
@@ -239,36 +264,43 @@ def __init__(
239264
240265
- appcontext: application context used by the connection. It should be
241266
a list of 3-tuples (namespace, name, value) and each entry in the
242-
tuple should be a string (default: None)
267+
tuple should be a string
268+
(default: None)
243269
244270
- shardingkey: a list of strings, numbers, bytes or dates that identify
245271
the database shard to connect to. This value is only used in thick
246-
mode (default: None)
272+
mode
273+
(default: None)
247274
248275
- supershardingkey: a list of strings, numbers, bytes or dates that
249276
identify the database shard to connect to. This value is only used in
250-
thick mode (default: None)
277+
thick mode
278+
(default: None)
251279
252280
- debug_jdwp: a string with the format "host=<host>;port=<port>" that
253281
specifies the host and port of the PL/SQL debugger. This value is
254282
only used in thin mode. For thick mode set the ORA_DEBUG_JDWP
255-
environment variable (default: None)
283+
environment variable
284+
(default: None)
256285
257286
- connection_id_prefix: an application specific prefix that is added to
258-
the connection identifier used for tracing (default: None)
287+
the connection identifier used for tracing
288+
(default: None)
259289
260290
- ssl_context: an SSLContext object used for connecting to the database
261291
using TLS. This SSL context will be modified to include the private
262292
key or any certificates found in a separately supplied wallet. This
263293
parameter should only be specified if the default SSLContext object
264-
cannot be used (default: None)
294+
cannot be used
295+
(default: None)
265296
266297
- sdu: the requested size of the Session Data Unit (SDU), in bytes. The
267298
value tunes internal buffers used for communication to the database.
268299
Bigger values can increase throughput for large queries or bulk data
269300
loads, but at the cost of higher memory use. The SDU size that will
270301
actually be used is negotiated down to the lower of this value and
271-
the database network SDU configuration value (default: 8192)
302+
the database network SDU configuration value
303+
(default: 8192)
272304
273305
- pool_boundary: one of the values "statement" or "transaction"
274306
indicating when pooled DRCP connections can be returned to the pool.
@@ -278,27 +310,32 @@ def __init__(
278310
- use_tcp_fast_open: boolean indicating whether to use TCP fast open.
279311
This is an Oracle Autonomous Database Serverless (ADB-S) specific
280312
property for clients connecting from within OCI Cloud network. Please
281-
refer to the ADB-S documentation for more information (default:
282-
False)
313+
refer to the ADB-S documentation for more information
314+
(default: False)
283315
284316
- ssl_version: one of the values ssl.TLSVersion.TLSv1_2 or
285-
ssl.TLSVersion.TLSv1_3 indicating which TLS version to use (default:
286-
None)
317+
ssl.TLSVersion.TLSv1_3 indicating which TLS version to use
318+
(default: None)
287319
288320
- program: the name of the executable program or application connected
289-
to the Oracle Database (default: oracledb.defaults.program)
321+
to the Oracle Database
322+
(default: oracledb.defaults.program)
290323
291324
- machine: the machine name of the client connecting to the Oracle
292-
Database (default: oracledb.defaults.machine)
325+
Database
326+
(default: oracledb.defaults.machine)
293327
294328
- terminal: the terminal identifier from which the connection
295-
originates (default: oracledb.defaults.terminal)
329+
originates
330+
(default: oracledb.defaults.terminal)
296331
297332
- osuser: the operating system user that initiates the database
298-
connection (default: oracledb.defaults.osuser)
333+
connection
334+
(default: oracledb.defaults.osuser)
299335
300336
- driver_name: the driver name used by the client to connect to the
301-
Oracle Database (default: oracledb.defaults.driver_name)
337+
Oracle Database
338+
(default: oracledb.defaults.driver_name)
302339
303340
- use_sni: boolean indicating whether to use the TLS SNI extension to
304341
bypass the second TLS neogiation that would otherwise be required
@@ -309,19 +346,22 @@ def __init__(
309346
parsing by the driver. Setting this to False makes thick and thin
310347
mode applications behave similarly regarding connection string
311348
parameter handling and locating any optional tnsnames.ora
312-
configuration file (default:
313-
oracledb.defaults.thick_mode_dsn_passthrough)
349+
configuration file
350+
(default: oracledb.defaults.thick_mode_dsn_passthrough)
314351
315352
- extra_auth_params: a dictionary containing configuration parameters
316353
necessary for Oracle Database authentication using plugins, such as
317-
the Azure and OCI cloud-native authentication plugins (default: None)
354+
the Azure and OCI cloud-native authentication plugins
355+
(default: None)
318356
319357
- pool_name: the name of the DRCP pool when using multi-pool DRCP with
320-
Oracle Database 23.4 or higher (default: None)
358+
Oracle Database 23.4 or higher
359+
(default: None)
321360
322361
- handle: an integer representing a pointer to a valid service context
323362
handle. This value is only used in thick mode. It should be used with
324-
extreme caution (default: 0)
363+
extreme caution
364+
(default: 0)
325365
"""
326366
pass
327367

0 commit comments

Comments
 (0)