@@ -2430,17 +2430,26 @@ constants used in advanced queuing.
2430
2430
Connection Authorization Modes
2431
2431
------------------------------
2432
2432
2433
- These constants are extensions to the DB API definition and have deprecated the
2434
- `authorization modes <https://cx-oracle.readthedocs.io/en/latest/api_manual/
2435
- module.html#connection-authorization-modes> `_ used in cx_Oracle 8.3. They are
2436
- possible values for the ``mode `` parameter of the :meth: `connect() ` method.
2433
+ These constants belong to the enumeration called ``AuthMode ``. The constants
2434
+ listed below are extensions to the DB API definition and have
2435
+ deprecated the `authorization modes <https://cx-oracle.readthedocs.io/en/
2436
+ latest/api_manual/module.html#connection-authorization-modes> `_ used in
2437
+ cx_Oracle 8.3. They are possible values for the ``mode `` parameter of the
2438
+ :meth: `connect() ` method.
2437
2439
2440
+ .. versionchanged :: 2.3.0
2441
+
2442
+ The integer constants for the connection authorization modes were replaced
2443
+ with the enumeration ``AuthMode ``.
2438
2444
2439
2445
.. data :: AUTH_MODE_DEFAULT
2440
2446
2441
2447
This constant is used to specify that default authentication is to take
2442
2448
place. This is the default value if no mode is passed at all.
2443
2449
2450
+ This enumerated value can also be identified by
2451
+ ``oracledb.AuthMode.DEFAULT ``.
2452
+
2444
2453
.. note ::
2445
2454
2446
2455
This constant can be used for standalone and pooled connections in the
@@ -2455,6 +2464,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2455
2464
This constant is used to specify that preliminary authentication is to be
2456
2465
used. This is needed for performing database startup and shutdown.
2457
2466
2467
+ This enumerated value can also be identified by
2468
+ ``oracledb.AuthMode.PRELIM ``.
2469
+
2458
2470
.. note ::
2459
2471
2460
2472
This constant can only be used in the python-oracledb Thick mode for
@@ -2467,6 +2479,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2467
2479
2468
2480
This constant is used to specify that SYSASM access is to be acquired.
2469
2481
2482
+ This enumerated value can also be identified by
2483
+ ``oracledb.AuthMode.SYSASM ``.
2484
+
2470
2485
.. note ::
2471
2486
2472
2487
This constant can be used for standalone and pooled connections in the
@@ -2480,6 +2495,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2480
2495
2481
2496
This constant is used to specify that SYSBACKUP access is to be acquired.
2482
2497
2498
+ This enumerated value can also be identified by
2499
+ ``oracledb.AuthMode.SYSBKP ``.
2500
+
2483
2501
.. note ::
2484
2502
2485
2503
This constant can be used for standalone and pooled connections in the
@@ -2493,6 +2511,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2493
2511
2494
2512
This constant is used to specify that SYSDBA access is to be acquired.
2495
2513
2514
+ This enumerated value can also be identified by
2515
+ ``oracledb.AuthMode.SYSDBA ``.
2516
+
2496
2517
.. note ::
2497
2518
2498
2519
This constant can be used for standalone and pooled connections in the
@@ -2506,6 +2527,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2506
2527
2507
2528
This constant is used to specify that SYSDG access is to be acquired.
2508
2529
2530
+ This enumerated value can also be identified by
2531
+ ``oracledb.AuthMode.SYSDGD ``.
2532
+
2509
2533
.. note ::
2510
2534
2511
2535
This constant can be used for standalone and pooled connections in the
@@ -2519,6 +2543,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2519
2543
2520
2544
This constant is used to specify that SYSKM access is to be acquired.
2521
2545
2546
+ This enumerated value can also be identified by
2547
+ ``oracledb.AuthMode.SYSKMT ``.
2548
+
2522
2549
.. note ::
2523
2550
2524
2551
This constant can be used for standalone and pooled connections in the
@@ -2532,6 +2559,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2532
2559
2533
2560
This constant is used to specify that SYSOPER access is to be acquired.
2534
2561
2562
+ This enumerated value can also be identified by
2563
+ ``oracledb.AuthMode.SYSOPER ``.
2564
+
2535
2565
.. note ::
2536
2566
2537
2567
This constant can be used for standalone and pooled connections in the
@@ -2545,6 +2575,9 @@ possible values for the ``mode`` parameter of the :meth:`connect()` method.
2545
2575
2546
2576
This constant is used to specify that SYSRAC access is to be acquired.
2547
2577
2578
+ This enumerated value can also be identified by
2579
+ ``oracledb.AuthMode.SYSRAC ``.
2580
+
2548
2581
.. note ::
2549
2582
2550
2583
This constant can be used for standalone and pooled connections in the
@@ -2714,18 +2747,26 @@ also used by the :attr:`MessageTable.operation` or
2714
2747
Connection Pool Get Modes
2715
2748
-------------------------
2716
2749
2717
- These constants are extensions to the DB API definition and have deprecated the
2750
+ These constants belong to the enumeration called ``PoolGetMode ``. The constants
2751
+ listed below are extensions to the DB API definition and have deprecated the
2718
2752
`Session Pool Get Modes <https://cx-oracle.readthedocs.io/en/latest/api_manual/
2719
2753
module.html#session-pool-get-modes> `_ constants that were used in cx_Oracle
2720
2754
8.3. They are possible values for the ``getmode `` parameter of the
2721
2755
:meth: `oracledb.create_pool() ` method.
2722
2756
2757
+ .. versionchanged :: 2.3.0
2758
+
2759
+ The integer constants for the connection pool get modes were replaced
2760
+ with the enumeration ``PoolGetMode ``.
2723
2761
2724
2762
.. data :: POOL_GETMODE_FORCEGET
2725
2763
2726
2764
This constant is used to specify that a new connection will be returned if
2727
2765
there are no free sessions available in the pool.
2728
2766
2767
+ This enumerated value can also be identified by
2768
+ ``oracledb.PoolGetMode.FORCEGET ``.
2769
+
2729
2770
.. note ::
2730
2771
2731
2772
This constant deprecates the ``SPOOL_ATTRVAL_FORCEGET `` constant that
@@ -2737,6 +2778,9 @@ module.html#session-pool-get-modes>`_ constants that were used in cx_Oracle
2737
2778
This constant is used to specify that an exception should be raised if
2738
2779
there are no free sessions available in the pool.
2739
2780
2781
+ This enumerated value can also be identified by
2782
+ ``oracledb.PoolGetMode.NOWAIT ``.
2783
+
2740
2784
.. note ::
2741
2785
2742
2786
This constant deprecates the ``SPOOL_ATTRVAL_NOWAIT `` constant that was
@@ -2749,6 +2793,9 @@ module.html#session-pool-get-modes>`_ constants that were used in cx_Oracle
2749
2793
session is available if there are no free sessions available in the pool.
2750
2794
This is the default value.
2751
2795
2796
+ This enumerated value can also be identified by
2797
+ ``oracledb.PoolGetMode.WAIT ``.
2798
+
2752
2799
.. note ::
2753
2800
2754
2801
This constant deprecates the ``SPOOL_ATTRVAL_WAIT `` constant that was
@@ -2761,6 +2808,9 @@ module.html#session-pool-get-modes>`_ constants that were used in cx_Oracle
2761
2808
of time (defined by the ``wait_timeout `` parameter) for a session to become
2762
2809
available before returning with an error.
2763
2810
2811
+ This enumerated value can also be identified by
2812
+ ``oracledb.PoolGetMode.TIMEDWAIT ``.
2813
+
2764
2814
.. note ::
2765
2815
2766
2816
This constant deprecates the ``SPOOL_ATTRVAL_TIMEDWAIT `` constant that
@@ -2771,18 +2821,27 @@ module.html#session-pool-get-modes>`_ constants that were used in cx_Oracle
2771
2821
Connection Pool Purity Constants
2772
2822
--------------------------------
2773
2823
2774
- These constants are extensions to the DB API definition and have deprecated the
2824
+ These constants belong to the enumeration called ``Purity ``. The constants
2825
+ listed below are extensions to the DB API definition and have deprecated the
2775
2826
`Session Pool Purity <https://cx-oracle.readthedocs.io/en/latest/api_manual/
2776
2827
module.html#session-pool-purity> `_ constants that were used in cx_Oracle 8.3.
2777
2828
They are possible values for the ``purity `` parameter of the :meth: `connect() `
2778
2829
method, which is used in Database Resident Connection Pooling (DRCP).
2779
2830
2831
+ .. versionchanged :: 2.3.0
2832
+
2833
+ The integer constants for the connection pool get modes were replaced
2834
+ with the enumeration ``Purity ``.
2835
+
2780
2836
.. data :: PURITY_DEFAULT
2781
2837
2782
2838
This constant is used to specify that the purity of the session is the
2783
2839
default value identified by Oracle (see Oracle's documentation for more
2784
2840
information). This is the default value.
2785
2841
2842
+ This enumerated value can also be identified by
2843
+ ``oracledb.Purity.DEFAULT ``.
2844
+
2786
2845
.. note ::
2787
2846
2788
2847
This constant deprecates the ``ATTR_PURITY_DEFAULT `` constant that was
@@ -2793,6 +2852,8 @@ method, which is used in Database Resident Connection Pooling (DRCP).
2793
2852
This constant is used to specify that the session acquired from the pool
2794
2853
should be new and not have any prior session state.
2795
2854
2855
+ This enumerated value can also be identified by ``oracledb.Purity.NEW ``.
2856
+
2796
2857
.. note ::
2797
2858
2798
2859
This constant deprecates the ``ATTR_PURITY_NEW `` constant that was used
@@ -2804,6 +2865,8 @@ method, which is used in Database Resident Connection Pooling (DRCP).
2804
2865
This constant is used to specify that the session acquired from the pool
2805
2866
need not be new and may have prior session state.
2806
2867
2868
+ This enumerated value can also be identified by ``oracledb.Purity.SELF ``.
2869
+
2807
2870
.. note ::
2808
2871
2809
2872
This constant deprecates the ``ATTR_PURITY_SELF `` constant that was
@@ -3404,26 +3467,40 @@ below.
3404
3467
Vector Format Constants
3405
3468
-----------------------
3406
3469
3407
- These constants are possible values for the :attr: ` FetchInfo.vector_format `
3408
- attribute.
3470
+ These constants belong to the enumeration called `` VectorFormat `` and are
3471
+ possible values for the :attr: ` FetchInfo.vector_format ` attribute.
3409
3472
3410
3473
.. versionadded :: 2.2.0
3411
3474
3475
+ .. versionchanged :: 2.3.0
3476
+
3477
+ The integer constants for the vector format constants were replaced with
3478
+ the enumeration ``VectorFormat ``.
3479
+
3412
3480
.. data :: VECTOR_FORMAT_FLOAT32
3413
3481
3414
3482
This constant is used to represent the storage format of VECTOR columns
3415
3483
using 32-bit floating point numbers.
3416
3484
3485
+ This enumerated value can also be identified by
3486
+ ``oracledb.VectorFormat.FLOAT32 ``.
3487
+
3417
3488
.. data :: VECTOR_FORMAT_FLOAT64
3418
3489
3419
3490
This constant is used to represent the storage format of VECTOR columns
3420
3491
using 64-bit floating point numbers.
3421
3492
3493
+ This enumerated value can also be identified by
3494
+ ``oracledb.VectorFormat.FLOAT64 ``.
3495
+
3422
3496
.. data :: VECTOR_FORMAT_INT8
3423
3497
3424
3498
This constant is used to represent the storage format of VECTOR columns
3425
3499
using 8-bit signed integers.
3426
3500
3501
+ This enumerated value can also be identified by
3502
+ ``oracledb.VectorFormat.INT8 ``.
3503
+
3427
3504
.. _exceptions :
3428
3505
3429
3506
Oracledb Exceptions
0 commit comments