@@ -48,7 +48,7 @@ Oracledb Methods
48
48
edition=None, tag=None, matchanytag=False, \
49
49
config_dir=oracledb.defaults.config_dir, appcontext=[], \
50
50
shardingkey=[], supershardingkey=[], debug_jdwp=None, \
51
- connection_id_prefix=None, handle=0)
51
+ connection_id_prefix=None, ssl_context=None, handle=0)
52
52
53
53
Constructor for creating a connection to the database. Returns a
54
54
:ref: `Connection Object <connobj >`. All parameters are optional and can be
@@ -295,13 +295,25 @@ Oracledb Methods
295
295
ctx=dblatest&id=GUID-B0FC69F9-2EBC-44E8-ACB2-62FBA14ABD5C> `__. This value
296
296
is only used in the python-oracledb Thin mode.
297
297
298
+ The ``ssl_context `` parameter is expected to be an `SSLContext object
299
+ <https://docs.python.org/3/library/ssl.html#ssl-contexts> `__ which is used
300
+ for connecting to the database using TLS. This SSL context will be
301
+ modified to include the private key or any certificates found in a
302
+ separately supplied wallet. This parameter should only be specified if
303
+ the default SSLContext object cannot be used. This value is only used in
304
+ the python-oracledb Thin mode.
305
+
298
306
If the ``handle `` parameter is specified, it must be of type OCISvcCtx\*
299
307
and is only of use when embedding Python in an application (like
300
308
PowerBuilder) which has already made the connection. The connection thus
301
309
created should *never * be used after the source handle has been closed or
302
310
destroyed. This value is only used in the python-oracledb Thick mode. It
303
311
should be used with extreme caution. The default value is 0.
304
312
313
+ .. versionchanged :: 2.0.0
314
+
315
+ The ``ssl_context `` parameter was added.
316
+
305
317
.. function :: ConnectParams(user=None, proxy_user=None, password=None, \
306
318
newpassword=None, wallet_password=None, access_token=None, host=None, \
307
319
port=1521, protocol="tcp", https_proxy=None, https_proxy_port=0, \
@@ -314,7 +326,7 @@ Oracledb Methods
314
326
edition=None, tag=None, matchanytag=False, \
315
327
config_dir=oracledb.defaults.config_dir, appcontext=[], \
316
328
shardingkey=[], supershardingkey=[], debug_jdwp=None, \
317
- connection_id_prefix=None, handle=0)
329
+ connection_id_prefix=None, ssl_context=None, handle=0)
318
330
319
331
Contains all the parameters that can be used to establish a connection to
320
332
the database.
@@ -526,11 +538,22 @@ Oracledb Methods
526
538
ctx=dblatest&id=GUID-B0FC69F9-2EBC-44E8-ACB2-62FBA14ABD5C> `__. This value
527
539
is only used in the python-oracledb Thin mode.
528
540
541
+ The ``ssl_context `` parameter is expected to be an `SSLContext object
542
+ <https://docs.python.org/3/library/ssl.html#ssl-contexts> `__ which is used
543
+ for connecting to the database using TLS. This SSL context will be
544
+ modified to include the private key or any certificates found in a
545
+ separately supplied wallet. This parameter should only be specified if
546
+ the default SSLContext object cannot be used. This value is only used in
547
+ the python-oracledb Thin mode.
548
+
529
549
The ``handle `` parameter is expected to be an integer which represents a
530
550
pointer to a valid service context handle. This value is only used in the
531
551
python-oracledb Thick mode. It should be used with extreme caution. The
532
552
default value is 0.
533
553
554
+ .. versionchanged :: 2.0.0
555
+
556
+ The ``ssl_context `` parameter was added.
534
557
535
558
.. function :: create_pool(dsn=None, pool_class=oracledb.ConnectionPool, \
536
559
params=None, min=1, max=2, increment=1, \
@@ -550,7 +573,7 @@ Oracledb Methods
550
573
edition=None, tag=None, matchanytag=False, \
551
574
config_dir=oracledb.defaults.config_dir, appcontext=[], \
552
575
shardingkey=[], supershardingkey=[], debug_jdwp=None, \
553
- connection_id_prefix=None, handle=0)
576
+ connection_id_prefix=None, ssl_context=None, handle=0)
554
577
555
578
Creates a connection pool with the supplied parameters and returns the
556
579
:ref: `ConnectionPool object <connpool >` for the pool. See :ref: `Connection
@@ -844,13 +867,25 @@ Oracledb Methods
844
867
ctx=dblatest&id=GUID-B0FC69F9-2EBC-44E8-ACB2-62FBA14ABD5C> `__. This value
845
868
is only used in the python-oracledb Thin mode.
846
869
870
+ The ``ssl_context `` parameter is expected to be an `SSLContext object
871
+ <https://docs.python.org/3/library/ssl.html#ssl-contexts> `__ which is used
872
+ for connecting to the database using TLS. This SSL context will be
873
+ modified to include the private key or any certificates found in a
874
+ separately supplied wallet. This parameter should only be specified if
875
+ the default SSLContext object cannot be used. This value is only used in
876
+ the python-oracledb Thin mode.
877
+
847
878
If the ``handle `` parameter is specified, it must be of type OCISvcCtx\*
848
879
and is only of use when embedding Python in an application (like
849
880
PowerBuilder) which has already made the connection. The connection thus
850
881
created should *never * be used after the source handle has been closed or
851
882
destroyed. This value is only used in the python-oracledb Thick mode. It
852
883
should be used with extreme caution. The deault value is 0.
853
884
885
+ .. versionchanged :: 2.0.0
886
+
887
+ The ``ssl_context `` parameter was added.
888
+
854
889
In the python-oracledb Thick mode, connection pooling is handled by
855
890
Oracle's `Session pooling <https://www.oracle.com/pls/topic/lookup?
856
891
ctx=dblatest&id=GUID-F9662FFB-EAEF-495C-96FC-49C6D1D9625C> `__ technology.
@@ -979,7 +1014,7 @@ Oracledb Methods
979
1014
edition=None, tag=None, matchanytag=False, \
980
1015
config_dir=oracledb.defaults.config_dir, appcontext=[], \
981
1016
shardingkey=[], supershardingkey=[], debug_jdwp=None, \
982
- connection_id_prefix=None, handle=0)
1017
+ connection_id_prefix=None, ssl_context=None, handle=0)
983
1018
984
1019
Creates and returns a :ref: `PoolParams Object <poolparam >`. The object
985
1020
can be passed to :meth: `oracledb.create_pool() `.
@@ -1243,11 +1278,23 @@ Oracledb Methods
1243
1278
ctx=dblatest&id=GUID-B0FC69F9-2EBC-44E8-ACB2-62FBA14ABD5C> `__. This value
1244
1279
is only used in the python-oracledb Thin mode.
1245
1280
1281
+ The ``ssl_context `` parameter is expected to be an `SSLContext object
1282
+ <https://docs.python.org/3/library/ssl.html#ssl-contexts> `__ which is used
1283
+ for connecting to the database using TLS. This SSL context will be
1284
+ modified to include the private key or any certificates found in a
1285
+ separately supplied wallet. This parameter should only be specified if
1286
+ the default SSLContext object cannot be used. This value is only used in
1287
+ the python-oracledb Thin mode.
1288
+
1246
1289
The ``handle `` parameter is expected to be an integer which represents a
1247
1290
pointer to a valid service context handle. This value is only used in the
1248
1291
python-oracledb Thick mode. It should be used with extreme caution. The
1249
1292
default value is 0.
1250
1293
1294
+ .. versionchanged :: 2.0.0
1295
+
1296
+ The ``ssl_context `` parameter was added.
1297
+
1251
1298
.. function :: Time(hour, minute, second)
1252
1299
1253
1300
Constructs an object holding a time value.
0 commit comments