zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
U
¸ý°dÝã@s¬dZddlmZddlZddlZddlZddlmZddlm    Z    ddlm
Z
ddlm Z dd    l m Z d
d lmZd
d lmZd
d lmZd
dlmZd
dlmZd
dlmZd
dlmZdZGdd„dejƒZGdd„dejƒZGdd„dejƒZGdd„deƒZ Gdd„de ej!ƒZ"Gdd„de ej#ƒZ$Gdd „d eƒZ%Gd!d"„d"ej&ƒZ'Gd#d$„d$e ej(ƒZ)Gd%d&„d&ƒZ*Gd'd(„d(ej+ƒZ,Gd)d*„d*ej-ƒZ.Gd+d,„d,ej/ƒZ0Gd-d.„d.ej1ƒZ2Gd/d0„d0e*ej3ƒZ4Gd1d2„d2e*ej5ƒZ6Gd3d4„d4e*ej7ƒZ8Gd5d6„d6e*ej9ƒZ:Gd7d8„d8ej;ƒZ<Gd9d:„d:ej=ƒZ>Gd;d<„d<e*ej?ƒZ@Gd=d>„d>ejAƒZBGd?d@„d@ejCƒZDGdAdB„dBejEƒZFGdCdD„dDe    ƒZGGdEdF„dFe ƒZHGdGdH„dHe
ƒZIeIZJdS)IaE
.. dialect:: oracle+cx_oracle
    :name: cx-Oracle
    :dbapi: cx_oracle
    :connectstring: oracle+cx_oracle://user:pass@hostname:port[/dbname][?service_name=<service>[&key=value&key=value...]]
    :url: https://oracle.github.io/python-cx_Oracle/
 
DSN vs. Hostname connections
-----------------------------
 
cx_Oracle provides several methods of indicating the target database.  The
dialect translates from a series of different URL forms.
 
Hostname Connections with Easy Connect Syntax
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
Given a hostname, port and service name of the target Oracle Database, for
example from Oracle's `Easy Connect syntax
<https://cx-oracle.readthedocs.io/en/latest/user_guide/connection_handling.html#easy-connect-syntax-for-connection-strings>`_,
then connect in SQLAlchemy using the ``service_name`` query string parameter::
 
    engine = create_engine("oracle+cx_oracle://scott:tiger@hostname:port/?service_name=myservice&encoding=UTF-8&nencoding=UTF-8")
 
The `full Easy Connect syntax
<https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-B0437826-43C1-49EC-A94D-B650B6A4A6EE>`_
is not supported.  Instead, use a ``tnsnames.ora`` file and connect using a
DSN.
 
Connections with tnsnames.ora or Oracle Cloud
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
Alternatively, if no port, database name, or ``service_name`` is provided, the
dialect will use an Oracle DSN "connection string".  This takes the "hostname"
portion of the URL as the data source name.  For example, if the
``tnsnames.ora`` file contains a `Net Service Name
<https://cx-oracle.readthedocs.io/en/latest/user_guide/connection_handling.html#net-service-names-for-connection-strings>`_
of ``myalias`` as below::
 
    myalias =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = mymachine.example.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orclpdb1)
        )
      )
 
The cx_Oracle dialect connects to this database service when ``myalias`` is the
hostname portion of the URL, without specifying a port, database name or
``service_name``::
 
    engine = create_engine("oracle+cx_oracle://scott:tiger@myalias/?encoding=UTF-8&nencoding=UTF-8")
 
Users of Oracle Cloud should use this syntax and also configure the cloud
wallet as shown in cx_Oracle documentation `Connecting to Autononmous Databases
<https://cx-oracle.readthedocs.io/en/latest/user_guide/connection_handling.html#connecting-to-autononmous-databases>`_.
 
SID Connections
^^^^^^^^^^^^^^^
 
To use Oracle's obsolete SID connection syntax, the SID can be passed in a
"database name" portion of the URL as below::
 
    engine = create_engine("oracle+cx_oracle://scott:tiger@hostname:1521/dbname?encoding=UTF-8&nencoding=UTF-8")
 
Above, the DSN passed to cx_Oracle is created by ``cx_Oracle.makedsn()`` as
follows::
 
    >>> import cx_Oracle
    >>> cx_Oracle.makedsn("hostname", 1521, sid="dbname")
    '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))(CONNECT_DATA=(SID=dbname)))'
 
Passing cx_Oracle connect arguments
-----------------------------------
 
Additional connection arguments can usually be passed via the URL
query string; particular symbols like ``cx_Oracle.SYSDBA`` are intercepted
and converted to the correct symbol::
 
    e = create_engine(
        "oracle+cx_oracle://user:pass@dsn?encoding=UTF-8&nencoding=UTF-8&mode=SYSDBA&events=true")
 
.. versionchanged:: 1.3 the cx_oracle dialect now accepts all argument names
   within the URL string itself, to be passed to the cx_Oracle DBAPI.   As
   was the case earlier but not correctly documented, the
   :paramref:`_sa.create_engine.connect_args` parameter also accepts all
   cx_Oracle DBAPI connect arguments.
 
To pass arguments directly to ``.connect()`` without using the query
string, use the :paramref:`_sa.create_engine.connect_args` dictionary.
Any cx_Oracle parameter value and/or constant may be passed, such as::
 
    import cx_Oracle
    e = create_engine(
        "oracle+cx_oracle://user:pass@dsn",
        connect_args={
            "encoding": "UTF-8",
            "nencoding": "UTF-8",
            "mode": cx_Oracle.SYSDBA,
            "events": True
        }
    )
 
Note that the default value for ``encoding`` and ``nencoding`` was changed to
"UTF-8" in cx_Oracle 8.0 so these parameters can be omitted when using that
version, or later.
 
Options consumed by the SQLAlchemy cx_Oracle dialect outside of the driver
--------------------------------------------------------------------------
 
There are also options that are consumed by the SQLAlchemy cx_oracle dialect
itself.  These options are always passed directly to :func:`_sa.create_engine`
, such as::
 
    e = create_engine(
        "oracle+cx_oracle://user:pass@dsn", coerce_to_decimal=False)
 
The parameters accepted by the cx_oracle dialect are as follows:
 
* ``arraysize`` - set the cx_oracle.arraysize value on cursors, defaulted
  to 50.  This setting is significant with cx_Oracle as the contents of LOB
  objects are only readable within a "live" row (e.g. within a batch of
  50 rows).
 
* ``auto_convert_lobs`` - defaults to True; See :ref:`cx_oracle_lob`.
 
* ``coerce_to_decimal`` - see :ref:`cx_oracle_numeric` for detail.
 
* ``encoding_errors`` - see :ref:`cx_oracle_unicode_encoding_errors` for detail.
 
.. _cx_oracle_sessionpool:
 
Using cx_Oracle SessionPool
---------------------------
 
The cx_Oracle library provides its own connection pool implementation that may
be used in place of SQLAlchemy's pooling functionality.  This can be achieved
by using the :paramref:`_sa.create_engine.creator` parameter to provide a
function that returns a new connection, along with setting
:paramref:`_sa.create_engine.pool_class` to ``NullPool`` to disable
SQLAlchemy's pooling::
 
    import cx_Oracle
    from sqlalchemy import create_engine
    from sqlalchemy.pool import NullPool
 
    pool = cx_Oracle.SessionPool(
        user="scott", password="tiger", dsn="orclpdb",
        min=2, max=5, increment=1, threaded=True,
    encoding="UTF-8", nencoding="UTF-8"
    )
 
    engine = create_engine("oracle+cx_oracle://", creator=pool.acquire, poolclass=NullPool)
 
The above engine may then be used normally where cx_Oracle's pool handles
connection pooling::
 
    with engine.connect() as conn:
        print(conn.scalar("select 1 FROM dual"))
 
 
As well as providing a scalable solution for multi-user applications, the
cx_Oracle session pool supports some Oracle features such as DRCP and
`Application Continuity
<https://cx-oracle.readthedocs.io/en/latest/user_guide/ha.html#application-continuity-ac>`_.
 
Using Oracle Database Resident Connection Pooling (DRCP)
--------------------------------------------------------
 
When using Oracle's `DRCP
<https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-015CA8C1-2386-4626-855D-CC546DDC1086>`_,
the best practice is to pass a connection class and "purity" when acquiring a
connection from the SessionPool.  Refer to the `cx_Oracle DRCP documentation
<https://cx-oracle.readthedocs.io/en/latest/user_guide/connection_handling.html#database-resident-connection-pooling-drcp>`_.
 
This can be achieved by wrapping ``pool.acquire()``::
 
    import cx_Oracle
    from sqlalchemy import create_engine
    from sqlalchemy.pool import NullPool
 
    pool = cx_Oracle.SessionPool(
        user="scott", password="tiger", dsn="orclpdb",
        min=2, max=5, increment=1, threaded=True,
    encoding="UTF-8", nencoding="UTF-8"
    )
 
    def creator():
        return pool.acquire(cclass="MYCLASS", purity=cx_Oracle.ATTR_PURITY_SELF)
 
    engine = create_engine("oracle+cx_oracle://", creator=creator, poolclass=NullPool)
 
The above engine may then be used normally where cx_Oracle handles session
pooling and Oracle Database additionally uses DRCP::
 
    with engine.connect() as conn:
        print(conn.scalar("select 1 FROM dual"))
 
.. _cx_oracle_unicode:
 
Unicode
-------
 
As is the case for all DBAPIs under Python 3, all strings are inherently
Unicode strings.   In all cases however, the driver requires an explicit
encoding configuration.
 
Ensuring the Correct Client Encoding
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
The long accepted standard for establishing client encoding for nearly all
Oracle related software is via the `NLS_LANG <https://www.oracle.com/database/technologies/faq-nls-lang.html>`_
environment variable.   cx_Oracle like most other Oracle drivers will use
this environment variable as the source of its encoding configuration.  The
format of this variable is idiosyncratic; a typical value would be
``AMERICAN_AMERICA.AL32UTF8``.
 
The cx_Oracle driver also supports a programmatic alternative which is to
pass the ``encoding`` and ``nencoding`` parameters directly to its
``.connect()`` function.  These can be present in the URL as follows::
 
    engine = create_engine("oracle+cx_oracle://scott:tiger@orclpdb/?encoding=UTF-8&nencoding=UTF-8")
 
For the meaning of the ``encoding`` and ``nencoding`` parameters, please
consult
`Characters Sets and National Language Support (NLS) <https://cx-oracle.readthedocs.io/en/latest/user_guide/globalization.html#globalization>`_.
 
.. seealso::
 
    `Characters Sets and National Language Support (NLS) <https://cx-oracle.readthedocs.io/en/latest/user_guide/globalization.html#globalization>`_
    - in the cx_Oracle documentation.
 
 
Unicode-specific Column datatypes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
The Core expression language handles unicode data by use of the :class:`.Unicode`
and :class:`.UnicodeText`
datatypes.  These types correspond to the  VARCHAR2 and CLOB Oracle datatypes by
default.   When using these datatypes with Unicode data, it is expected that
the Oracle database is configured with a Unicode-aware character set, as well
as that the ``NLS_LANG`` environment variable is set appropriately, so that
the VARCHAR2 and CLOB datatypes can accommodate the data.
 
In the case that the Oracle database is not configured with a Unicode character
set, the two options are to use the :class:`_types.NCHAR` and
:class:`_oracle.NCLOB` datatypes explicitly, or to pass the flag
``use_nchar_for_unicode=True`` to :func:`_sa.create_engine`,
which will cause the
SQLAlchemy dialect to use NCHAR/NCLOB for the :class:`.Unicode` /
:class:`.UnicodeText` datatypes instead of VARCHAR/CLOB.
 
.. versionchanged:: 1.3  The :class:`.Unicode` and :class:`.UnicodeText`
   datatypes now correspond to the ``VARCHAR2`` and ``CLOB`` Oracle datatypes
   unless the ``use_nchar_for_unicode=True`` is passed to the dialect
   when :func:`_sa.create_engine` is called.
 
 
.. _cx_oracle_unicode_encoding_errors:
 
Encoding Errors
^^^^^^^^^^^^^^^
 
For the unusual case that data in the Oracle database is present with a broken
encoding, the dialect accepts a parameter ``encoding_errors`` which will be
passed to Unicode decoding functions in order to affect how decoding errors are
handled.  The value is ultimately consumed by the Python `decode
<https://docs.python.org/3/library/stdtypes.html#bytes.decode>`_ function, and
is passed both via cx_Oracle's ``encodingErrors`` parameter consumed by
``Cursor.var()``, as well as SQLAlchemy's own decoding function, as the
cx_Oracle dialect makes use of both under different circumstances.
 
.. versionadded:: 1.3.11
 
 
.. _cx_oracle_setinputsizes:
 
Fine grained control over cx_Oracle data binding performance with setinputsizes
-------------------------------------------------------------------------------
 
The cx_Oracle DBAPI has a deep and fundamental reliance upon the usage of the
DBAPI ``setinputsizes()`` call.   The purpose of this call is to establish the
datatypes that are bound to a SQL statement for Python values being passed as
parameters.  While virtually no other DBAPI assigns any use to the
``setinputsizes()`` call, the cx_Oracle DBAPI relies upon it heavily in its
interactions with the Oracle client interface, and in some scenarios it is  not
possible for SQLAlchemy to know exactly how data should be bound, as some
settings can cause profoundly different performance characteristics, while
altering the type coercion behavior at the same time.
 
Users of the cx_Oracle dialect are **strongly encouraged** to read through
cx_Oracle's list of built-in datatype symbols at
https://cx-oracle.readthedocs.io/en/latest/api_manual/module.html#database-types.
Note that in some cases, significant performance degradation can occur when
using these types vs. not, in particular when specifying ``cx_Oracle.CLOB``.
 
On the SQLAlchemy side, the :meth:`.DialectEvents.do_setinputsizes` event can
be used both for runtime visibility (e.g. logging) of the setinputsizes step as
well as to fully control how ``setinputsizes()`` is used on a per-statement
basis.
 
.. versionadded:: 1.2.9 Added :meth:`.DialectEvents.setinputsizes`
 
 
Example 1 - logging all setinputsizes calls
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
The following example illustrates how to log the intermediary values from a
SQLAlchemy perspective before they are converted to the raw ``setinputsizes()``
parameter dictionary.  The keys of the dictionary are :class:`.BindParameter`
objects which have a ``.key`` and a ``.type`` attribute::
 
    from sqlalchemy import create_engine, event
 
    engine = create_engine("oracle+cx_oracle://scott:tiger@host/xe")
 
    @event.listens_for(engine, "do_setinputsizes")
    def _log_setinputsizes(inputsizes, cursor, statement, parameters, context):
        for bindparam, dbapitype in inputsizes.items():
                log.info(
                    "Bound parameter name: %s  SQLAlchemy type: %r  "
                    "DBAPI object: %s",
                    bindparam.key, bindparam.type, dbapitype)
 
Example 2 - remove all bindings to CLOB
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
The ``CLOB`` datatype in cx_Oracle incurs a significant performance overhead,
however is set by default for the ``Text`` type within the SQLAlchemy 1.2
series.   This setting can be modified as follows::
 
    from sqlalchemy import create_engine, event
    from cx_Oracle import CLOB
 
    engine = create_engine("oracle+cx_oracle://scott:tiger@host/xe")
 
    @event.listens_for(engine, "do_setinputsizes")
    def _remove_clob(inputsizes, cursor, statement, parameters, context):
        for bindparam, dbapitype in list(inputsizes.items()):
            if dbapitype is CLOB:
                del inputsizes[bindparam]
 
.. _cx_oracle_returning:
 
RETURNING Support
-----------------
 
The cx_Oracle dialect implements RETURNING using OUT parameters.
The dialect supports RETURNING fully.
 
.. _cx_oracle_lob:
 
LOB Datatypes
--------------
 
LOB datatypes refer to the "large object" datatypes such as CLOB, NCLOB and
BLOB. Modern versions of cx_Oracle and oracledb are optimized for these
datatypes to be delivered as a single buffer. As such, SQLAlchemy makes use of
these newer type handlers by default.
 
To disable the use of newer type handlers and deliver LOB objects as classic
buffered objects with a ``read()`` method, the parameter
``auto_convert_lobs=False`` may be passed to :func:`_sa.create_engine`,
which takes place only engine-wide.
 
Two Phase Transactions Not Supported
-------------------------------------
 
Two phase transactions are **not supported** under cx_Oracle due to poor
driver support.   As of cx_Oracle 6.0b1, the interface for
two phase transactions has been changed to be more of a direct pass-through
to the underlying OCI layer with less automation.  The additional logic
to support this system is not implemented in SQLAlchemy.
 
.. _cx_oracle_numeric:
 
Precision Numerics
------------------
 
SQLAlchemy's numeric types can handle receiving and returning values as Python
``Decimal`` objects or float objects.  When a :class:`.Numeric` object, or a
subclass such as :class:`.Float`, :class:`_oracle.DOUBLE_PRECISION` etc. is in
use, the :paramref:`.Numeric.asdecimal` flag determines if values should be
coerced to ``Decimal`` upon return, or returned as float objects.   To make
matters more complicated under Oracle, Oracle's ``NUMBER`` type can also
represent integer values if the "scale" is zero, so the Oracle-specific
:class:`_oracle.NUMBER` type takes this into account as well.
 
The cx_Oracle dialect makes extensive use of connection- and cursor-level
"outputtypehandler" callables in order to coerce numeric values as requested.
These callables are specific to the specific flavor of :class:`.Numeric` in
use, as well as if no SQLAlchemy typing objects are present.   There are
observed scenarios where Oracle may sends incomplete or ambiguous information
about the numeric types being returned, such as a query where the numeric types
are buried under multiple levels of subquery.  The type handlers do their best
to make the right decision in all cases, deferring to the underlying cx_Oracle
DBAPI for all those cases where the driver can make the best decision.
 
When no typing objects are present, as when executing plain SQL strings, a
default "outputtypehandler" is present which will generally return numeric
values which specify precision and scale as Python ``Decimal`` objects.  To
disable this coercion to decimal for performance reasons, pass the flag
``coerce_to_decimal=False`` to :func:`_sa.create_engine`::
 
    engine = create_engine("oracle+cx_oracle://dsn", coerce_to_decimal=False)
 
The ``coerce_to_decimal`` flag only impacts the results of plain string
SQL statements that are not otherwise associated with a :class:`.Numeric`
SQLAlchemy type (or a subclass of such).
 
.. versionchanged:: 1.2  The numeric handling system for cx_Oracle has been
   reworked to take advantage of newer cx_Oracle features as well
   as better integration of outputtypehandlers.
 
é)Ú annotationsNé)Úbase)ÚOracleCompiler)Ú OracleDialect)ÚOracleExecutionContext)Ú_OracleDateLiteralRenderé)Úexc)Úutil)Úcursor)Ú
interfaces)Ú
processors)Úsqltypes)Úis_sql_compileric@s&eZdZdd„Zddd„Zdd„ZdS)    Ú_OracleIntegercCstS©N©Úint©ÚselfÚdbapi©rú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\sqlalchemy/dialects/oracle/cx_oracle.pyÚget_dbapi_typeÁsz_OracleInteger.get_dbapi_typeNcCs(|j}|j|jd|dk    r|n|jtdS)Néÿ©Ú    arraysizeÚ outconverter)rÚvarÚSTRINGrr)rÚdialectr rÚ    cx_OraclerrrÚ_cx_oracle_varÆsüz_OracleInteger._cx_oracle_varcs‡‡fdd„}|S)Ncs ˆ ˆ|¡Sr)r#©r ÚnameÚ default_typeÚsizeÚ    precisionÚscale©r!rrrÚhandlerÐsz<_OracleInteger._cx_oracle_outputtypehandler.<locals>.handlerr©rr!r+rr*rÚ_cx_oracle_outputtypehandlerÏsz+_OracleInteger._cx_oracle_outputtypehandler)N)Ú__name__Ú
__module__Ú __qualname__rr#r-rrrrrÀs
    rc@s(eZdZdZdd„Zdd„Zdd„ZdS)    Ú_OracleNumericFcs>|jdkrdS|jr4t tj|j¡‰‡fdd„}|StjSdS)Nrcs6t|ttfƒrˆ|ƒS|dk    r.| ¡r.t|ƒS|SdSr)Ú
isinstancerÚfloatÚ is_infinite©Úvalue©Ú    processorrrÚprocessás
z._OracleNumeric.bind_processor.<locals>.process)r)Ú    asdecimalrZto_decimal_processor_factoryÚdecimalÚDecimalZ_effective_decimal_return_scaleZto_float©rr!r9rr7rÚbind_processorÙs
ÿ z_OracleNumeric.bind_processorcCsdSrr©rr!ÚcoltyperrrÚresult_processorísz_OracleNumeric.result_processorcs|j‰‡‡fdd„}|S)Ncs–d}|rFˆjr,|ˆjkr$|}tj}qDtj}q‚ˆjr>|dkr>dSˆj}n<ˆjrj|ˆjkrb|}tj}q‚tj}nˆjr||dkr|dSˆj}|j|d|j|dS)Nrrr)r:Ú NATIVE_FLOATr;r<Ú    is_numberrr)r r%r&r'r(r)rÚtype_©r"rrrr+ós0
 
üz<_OracleNumeric._cx_oracle_outputtypehandler.<locals>.handler)rr,rrErr-ðs,z+_OracleNumeric._cx_oracle_outputtypehandlerN)r.r/r0rCr>rAr-rrrrr1Ösr1c@seZdZdd„ZdS)Ú _OracleUUIDcCs|jSr)r rrrrr#sz_OracleUUID.get_dbapi_typeN©r.r/r0rrrrrrF"srFc@seZdZdd„ZdS)Ú_OracleBinaryFloatcCs|jSr)rBrrrrr(sz!_OracleBinaryFloat.get_dbapi_typeNrGrrrrrH'srHc@s eZdZdS)Ú_OracleBINARY_FLOATN©r.r/r0rrrrrI,srIc@s eZdZdS)Ú_OracleBINARY_DOUBLENrJrrrrrK0srKc@seZdZdZdS)Ú _OracleNUMBERTN)r.r/r0rCrrrrrL4srLc@seZdZdd„Zdd„ZdS)Ú _CXOracleDatecCsdSrr©rr!rrrr>9sz_CXOracleDate.bind_processorcCs dd„}|S)NcSs|dk    r| ¡S|SdSr)Údater5rrrr9=sz/_CXOracleDate.result_processor.<locals>.processr)rr!r@r9rrrrA<sz_CXOracleDate.result_processorN)r.r/r0r>rArrrrrM8srMc@seZdZdd„ZdS)Ú_CXOracleTIMESTAMPcCs
| |¡Sr)Z_literal_processor_datetimerNrrrÚliteral_processorGsz$_CXOracleTIMESTAMP.literal_processorN)r.r/r0rQrrrrrPFsrPc@s eZdZdS)Ú _LOBDataTypeNrJrrrrrRKsrRc@seZdZdd„ZdS)Ú _OracleCharcCs|jSr)Ú
FIXED_CHARrrrrrRsz_OracleChar.get_dbapi_typeNrGrrrrrSQsrSc@seZdZdd„ZdS)Ú _OracleNCharcCs|jSr)Ú FIXED_NCHARrrrrrWsz_OracleNChar.get_dbapi_typeNrGrrrrrUVsrUc@seZdZdd„ZdS)Ú_OracleUnicodeStringNCHARcCs|jSr)ÚNCHARrrrrr\sz(_OracleUnicodeStringNCHAR.get_dbapi_typeNrGrrrrrW[srWc@seZdZdd„ZdS)Ú_OracleUnicodeStringCHARcCs|jSr©Z LONG_STRINGrrrrrasz'_OracleUnicodeStringCHAR.get_dbapi_typeNrGrrrrrY`srYc@seZdZdd„ZdS)Ú_OracleUnicodeTextNCLOBcCs|jSr©ÚDB_TYPE_NVARCHARrrrrrfsz&_OracleUnicodeTextNCLOB.get_dbapi_typeNrGrrrrr[esr[c@seZdZdd„ZdS)Ú_OracleUnicodeTextCLOBcCs|jSrr\rrrrrnsz%_OracleUnicodeTextCLOB.get_dbapi_typeNrGrrrrr^msr^c@seZdZdd„ZdS)Ú _OracleTextcCs|jSrr\rrrrrvsz_OracleText.get_dbapi_typeNrGrrrrr_usr_c@seZdZdd„ZdS)Ú _OracleLongcCs|jSrrZrrrrr~sz_OracleLong.get_dbapi_typeNrGrrrrr`}sr`c@s eZdZdS)Ú _OracleStringNrJrrrrra‚srac@seZdZdd„ZdS)Ú _OracleEnumcstj ||¡‰‡fdd„}|S)Ncs ˆ|ƒ}|Srr)r6Zraw_str©Z    enum_procrrr9Šsz+_OracleEnum.bind_processor.<locals>.process)rÚEnumr>r=rrcrr>‡s z_OracleEnum.bind_processorN)r.r/r0r>rrrrrb†srbcs,eZdZdd„Zdd„Z‡fdd„Z‡ZS)Ú _OracleBinarycCs|jSr)Ú DB_TYPE_RAWrrrrr’sz_OracleBinary.get_dbapi_typecCsdSrrrNrrrr>˜sz_OracleBinary.bind_processorcs|js
dStƒ ||¡SdSr)Úauto_convert_lobsÚsuperrAr?©Ú    __class__rrrA›sz_OracleBinary.result_processor)r.r/r0rr>rAÚ __classcell__rrrirre‘srec@seZdZdd„ZdS)Ú_OracleIntervalcCs|jSr)ÚINTERVALrrrrr£sz_OracleInterval.get_dbapi_typeNrGrrrrrl¢srlc@s eZdZdS)Ú
_OracleRawNrJrrrrrn§srnc@seZdZdd„ZdS)Ú _OracleRowidcCs|jSr)ÚROWIDrrrrr¬sz_OracleRowid.get_dbapi_typeNrGrrrrro«sroc@s>eZdZdZdZe ddddddddddddœ ¡Zdd    „Zd
S) ÚOracleCompiler_cx_oracleTFÚPÚAÚZÚC) ú%ú(ú)ú:Ú.ú[ú]ú ú\ú/ú?c sôt|ddƒ}|dks4|dk    rXˆj |¡rX| dd¡sXd|}||d<|}tjˆ|f|ŽS| dd¡}|säˆj |¡r¸ˆj ‡fdd„|¡}|d         ¡s¢|d    d
krªd |}||d<|}n,|d         ¡sÐ|d    d
kräd |}||d<|}tjˆ|f|ŽS) NÚquoteTFZ post_compilez"%s"Ú escaped_fromcsˆj| d¡S©Nr)Z_bind_translate_charsÚgroup)Úm©rrrÚ<lambda>éóz;OracleCompiler_cx_oracle.bindparam_string.<locals>.<lambda>rÚ_ÚD)
ÚgetattrÚpreparerZ_bindparam_requires_quotesÚgetrÚbindparam_stringZ_bind_translate_reÚsearchÚsubÚisdigit)rr%ÚkwrZ quoted_namer‚Únew_namerr†rrŽÉs: ÿþ
ý
ø  
þz)OracleCompiler_cx_oracle.bindparam_stringN)    r.r/r0Ú_oracle_cx_sql_compilerÚ_oracle_returningr Ú immutabledictZbindname_escape_charactersrŽrrrrrq°s"õÿrqcs^eZdZdZdd„Zdd„Zdd„Z‡fdd    „Zd
d „Zd d „Z    ddœdd„Z
dd„Z ‡Z S)Ú OracleExecutionContext_cx_oracleNc
Cs~|jjs|jjrz|j}|dk    s$t‚t|jƒ}|jj}|jj     ¡D]4}|j
rB|jj |}|j   |j¡}t|dƒrŒ|j|j|j|d||<nÊ| |jj¡}|jj}|dk    s®t‚|dkrÌt d|j|j f¡‚t|tƒr||jkrê|j}n||jkrú|j}|jj|dd„|d||<n@t|tƒrB|jrB|jjt j!|d||<n|jj||d||<|jD]}    |||    | "||¡<q\qBdS)Nr#©rzXCannot create out parameter for parameter %r - its type %r is not supported by cx_oraclecSs| ¡Sr)Úreadr5rrrr‡3rˆzOOracleExecutionContext_cx_oracle._generate_out_parameter_vars.<locals>.<lambda>©rr)#ÚcompiledZhas_out_parametersr•Úout_parametersÚAssertionErrorÚlenÚ
parametersZescaped_bind_namesZbindsÚvaluesZ
isoutparamZ
bind_namesÚtypeZ dialect_implr!Úhasattrr#r rrr
ÚInvalidRequestErrorÚkeyr2rRr]ÚNCLOBrfÚBLOBrr1r:r;r<r)
rrœZ
len_paramsZquoted_bind_namesZ    bindparamr%Z    type_implÚdbtyper"ÚparamrrrÚ_generate_out_parameter_varsûsf 
 
ÿ  
ýÿ 
 
ý ÿþþ ÿ
 
þ
ÿz=OracleExecutionContext_cx_oracle._generate_out_parameter_varscsji‰|jjD]6\}}}}| |jd|j¡}|r |j |¡}|ˆ|<q ˆrf|jj‰‡‡fdd„}||j_dS)NZcx_oracle_outputtypehandlercs4|ˆkrˆ|||||||ƒSˆ||||||ƒSdSrrr$©Zdefault_handlerZoutput_handlersrrÚoutput_type_handlerZs"ÿÿzaOracleExecutionContext_cx_oracle._generate_cursor_outputtype_handler.<locals>.output_type_handler)    r›Ú_result_columnsZ_cached_custom_processorr!Ú_get_cx_oracle_type_handlerZdenormalize_nameÚ_dbapi_connectionÚoutputtypehandlerr )rÚkeynamer%ZobjectsrDr+Zdenormalized_namer«rrªrÚ#_generate_cursor_outputtype_handlerIsý 
 zDOracleExecutionContext_cx_oracle._generate_cursor_outputtype_handlercCst|dƒr| |j¡SdSdS)Nr-)r¢r-r!)rÚimplrrrr­hs
 z<OracleExecutionContext_cx_oracle._get_cx_oracle_type_handlercs6tƒ ¡t|jddƒsdSi|_| ¡| ¡dS)Nr”F)rhÚpre_execr‹r›rœr©r±r†rirrr³ns 
z)OracleExecutionContext_cx_oracle.pre_execcCsR|jrNt|jƒrN|jjrN|j|jdd}tj|jdd„|jjDƒ|d}||_dS)NT©Ú    _internalcSsg|]}|jdf‘qSr)r°)Ú.0ÚentryrrrÚ
<listcomp>†sÿz>OracleExecutionContext_cx_oracle.post_exec.<locals>.<listcomp>)Úinitial_buffer)    r›rr•Úfetchall_for_returningr Ú_cursorZ FullyBufferedCursorFetchStrategyr¬Zcursor_fetch_strategy)rr¹Zfetch_strategyrrrÚ    post_execys$ÿþýÿþú    z*OracleExecutionContext_cx_oracle.post_execcCs |j ¡}|jjr|jj|_|Sr)r®r r!r)rÚcrrrÚ create_cursors
 
z.OracleExecutionContext_cx_oracle.create_cursorFr´csPˆj}|s|dks t|ƒr |js(tdƒ‚tˆjƒ}tt‡fdd„t|ƒDƒŽƒS)Nz7execution context was not prepared for Oracle RETURNINGcs(g|] }dd„ˆjd|›jDƒ‘qS)cSsg|]}|pdD]}|‘qqS)rr)r¶Z stmt_resultÚvalrrrr¸¯s
üzVOracleExecutionContext_cx_oracle.fetchall_for_returning.<locals>.<listcomp>.<listcomp>Zret_)rœr )r¶Újr†rrr¸®s ùÿþzKOracleExecutionContext_cx_oracle.fetchall_for_returning.<locals>.<listcomp>)    r›rr•ÚNotImplementedErrorržrœÚlistÚzipÚrange)rr rµr›Znumcolsrr†rrº–s(ÿþýüÿ
 
øÿÿz7OracleExecutionContext_cx_oracle.fetchall_for_returningcsˆjjr t‚‡fdd„|DƒS)Ncsg|]}ˆj ˆj|¡‘qSr)r!Ú    _paramvalrœ)r¶r%r†rrr¸ÁsÿzMOracleExecutionContext_cx_oracle.get_out_parameter_values.<locals>.<listcomp>)r›Z    returningr)rZout_param_namesrr†rÚget_out_parameter_values»s 
þz9OracleExecutionContext_cx_oracle.get_out_parameter_values) r.r/r0rœr©r±r­r³r¼r¾rºrÆrkrrrirr—øsN %r—c4sÎeZdZdZeZeZdZdZ    dZ
dZ dZ dZ ejjZdZejZe ejeejeejeejeeje ej!e"ej#e$ej%e&ej'e(ej)ej*ej+e,ej-e,ej.e/ej0e1ej2e3ej4e5ej6e7ej8e9ej:e;ej<e=ej>e?ej@eAejBeCejDeEejFeGi¡eHZIdZJeK L¡ZMeKjNddd4dd„ƒZOd    d
„ZPeQd d „ƒZR‡fd d„ZSdd„ZT‡fdd„ZUdd„ZVdd„ZWdd„ZXeYjZZ[dd„Z\dd„Z]dd„Z^dd „Z_d!d"„Z`d#d$„Zad5d%d&„Zbd'd(„Zcd)d*„Zdd6d,d-„Zed7d.d/„Zfd0d1„Zgd2d3„Zh‡ZiS)8ÚOracleDialect_cx_oracleTZ    cx_oracleN)ú1.3aAThe 'threaded' parameter to the cx_oracle/oracledb dialect is deprecated as a dialect-level argument, and will be removed in a future release.  As of version 1.3, it defaults to False rather than True.  The 'threaded' option can be passed to cx_Oracle directly in the URL query string passed to :func:`_sa.create_engine`.)Úthreadedé2c KsÊtj|f|Ž||_||_|r(d|i|_|dk    r6||_||_||_|jrl|j     
¡|_    t |j    t j <t|j    t j<|j}| |¡|dk    rÆ|j|j|j|j|j|j|j|j|j|j|jt|jh |_dd„|_ dS)NZencodingErrorscSs| ¡Sr)Úgetvaluer5rrrr‡<rˆz2OracleDialect_cx_oracle.__init__.<locals>.<lambda>)!rÚ__init__rÚencoding_errorsÚ_cursor_var_unicode_kwargsÚ_cx_oracle_threadedrgÚcoerce_to_decimalZ_use_nchar_for_unicodeÚcolspecsÚcopyrWrÚUnicoder[Ú UnicodeTextrÚ _load_versionZDATETIMEr]rfr¥ÚCLOBZLOBr¦rXrVrTÚ    TIMESTAMPrrBZinclude_set_input_sizesrÅ)rrgrÐrrÍrÉÚkwargsÚ dbapi_modulerrrrÌýsBÿ   
òz OracleDialect_cx_oracle.__init__cCsbd}|dk    r:t d|j¡}|r:tdd„| ddd¡Dƒƒ}||_|jdkr^|jdkr^t d    ¡‚dS)
N)rrrz(\d+)\.(\d+)(?:\.(\d+))?css|]}|dk    rt|ƒVqdSrr©r¶ÚxrrrÚ    <genexpr>Csz8OracleDialect_cx_oracle._load_version.<locals>.<genexpr>rér    )éz+cx_Oracle version 7 and above are supported)ÚreÚmatchÚversionÚtupler„Z cx_oracle_verr
r£)rrÙrár…rrrrÕ>s ÿÿz%OracleDialect_cx_oracle._load_versioncCs ddl}|Srƒ)r")Úclsr"rrrÚ import_dbapiLsz$OracleDialect_cx_oracle.import_dbapicstƒ |¡| |¡dSr)rhÚ
initializeÚ_detect_decimal_char©rÚ
connectionrirrråRs z"OracleDialect_cx_oracle.initializec
    Cs‚| ¡p}| t¡}| dd|i¡| ¡}| dd¡\}}}| d|||dœ¡| ¡}|dkrlt d¡‚|d}    W5QRX|    S)    Nz‹
                begin
                   :trans_id := dbms_transaction.local_transaction_id( TRUE );
                end;
                Útrans_idrzrÝzÌSELECT CASE BITAND(t.flag, POWER(2, 28)) WHEN 0 THEN 'READ COMMITTED' ELSE 'SERIALIZABLE' END AS isolation_level FROM v$transaction t WHERE (t.xidusn, t.xidslot, t.xidsqn) = ((:xidusn, :xidslot, :xidsqn)))ÚxidusnÚxidslotÚxidsqnz"could not retrieve isolation levelr)    r rÚstrÚexecuterËÚsplitÚfetchoner
r£)
rÚdbapi_connectionr ZoutvalrérêrërìÚrowÚresultrrrÚget_isolation_levelVs&
 
ú
ù    ÿz+OracleDialect_cx_oracle.get_isolation_levelcstƒ |¡dgS)NÚ
AUTOCOMMIT)rhÚget_isolation_level_values)rrñrirrrö…s
ÿz2OracleDialect_cx_oracle.get_isolation_level_valuesc    CsF|dkrd|_n2d|_| ¡| ¡}| d|›¡W5QRXdS)NrõTFz"ALTER SESSION SET ISOLATION_LEVEL=)Z
autocommitÚrollbackr rî)rrñÚlevelr rrrÚset_isolation_levelŠs 
z+OracleDialect_cx_oracle.set_isolation_levelc    s |j}| ¡L}‡fdd„}||_| d¡| ¡d}| d¡d}|d ¡rVt‚W5QRX|ˆ_ˆjdkrœˆj    ‰ˆj
‰‡‡fdd    „ˆ_    ‡‡fd
d    „ˆ_
dS) Ncs|jˆjjd|jdS)Nrr˜)rrr r)r r%Z defaultTyper'r(r)r†rrr«¥s
ÿzIOracleDialect_cx_oracle._detect_decimal_char.<locals>.output_type_handlerzSELECT 1.1 FROM DUALrÚ0rrzcsˆ| ˆjd¡ƒS©Nrz©ÚreplaceÚ _decimal_charr5)Ú_detect_decimalrrrr‡¹s ÿz>OracleDialect_cx_oracle._detect_decimal_char.<locals>.<lambda>csˆ| ˆjd¡ƒSrûrür5)Ú _to_decimalrrrr‡¼s ÿ) rèr r¯rîrðÚlstripr‘rrþrÿr)rrèrñr r«r6Z decimal_charr)rÿrrrræ“s
     
 
z,OracleDialect_cx_oracle._detect_decimal_charcCsd|kr| |¡St|ƒSdSrû)rr)rr6rrrrÿÀs
z'OracleDialect_cx_oracle._detect_decimalcs@|‰ˆj‰tdd ˆ¡‰tdd ˆ¡‰‡‡‡‡fdd„}|S)z^establish the default outputtypehandler established at the
        connection level.
 
        T)r:Fcs|ˆjkrx|ˆjk    rxˆjsdS|dkrF|dkrF|jˆjdˆj|jdS|rd|dkrdˆ||||||ƒSˆ||||||ƒSn–ˆjr¸|ˆjˆjfkr¸|ˆj    k    r¸|ˆj
k    r¸|jt ||jfˆjŽSˆj ræ|ˆj    ˆj
fkræ|jˆj t|jfˆjŽSˆj r|ˆjfkr| ˆjt|j¡SdS)Nr)riÿÿÿrrš)ÚNUMBERrBrÐrr rÿrrÎrTrÖr¥rírgr]Ú_CX_ORACLE_MAGIC_LOB_SIZEr¦rfr$©r"r!Z float_handlerZnumber_handlerrrr«Øsˆÿþü ÿÿÿþÿþùø
ýüþýü
ÿýz\OracleDialect_cx_oracle._generate_connection_outputtype_handler.<locals>.output_type_handler)rrLr-)rr«rrrÚ'_generate_connection_outputtype_handlerÈsÿþÿþCz?OracleDialect_cx_oracle._generate_connection_outputtype_handlercs| ¡‰‡fdd„}|S)Ncs
ˆ|_dSr)r¯)Úconn©r«rrÚ
on_connect!sz6OracleDialect_cx_oracle.on_connect.<locals>.on_connect)r)rrrrrrs z"OracleDialect_cx_oracle.on_connectc
spt|jƒ}dD]H}||krtjˆj›d|›dddt ||t¡tˆ|| |¡ƒq|j    }| dd¡}|sr|rÊ|j
}|r†t |ƒ}nd}|rœ|rœt   d¡‚|r¨d    |i}|r´d|i}ˆjj|j|f|Ž}n|j}|dk    rà||d
<|jdk    rô|j|d <|jdk    r
|j|d <ˆjdk    r$| d ˆj¡‡fdd„}    t |d|    ¡t |d t¡t |dt¡t |d|    ¡g|fS)N)Zuse_ansirgz dialect option zK should only be passed to create_engine directly, not within the URL stringrÈ)ráÚ service_nameiñzI"service_name" option shouldn't be used with a "database" part of the urlZsidÚdsnÚpasswordÚuserrÉcsNt|tƒrFz t|ƒ}Wn(tk
r>| ¡}tˆj|ƒYSX|Sn|SdSr)r2rírÚ
ValueErrorÚupperr‹r)r6Zint_valr†rrÚconvert_cx_oracle_constantWs
 zOOracleDialect_cx_oracle.create_connect_args.<locals>.convert_cx_oracle_constantÚmodeÚeventsZpurity)ÚdictÚqueryr Zwarn_deprecatedÚdriverZcoerce_kw_typeÚboolÚsetattrÚpopÚdatabaseÚportrr
r£rZmakedsnÚhostr ÚusernamerÏÚ
setdefault)
rÚurlÚoptsÚoptrr    rZmakedsn_kwargsr
rrr†rÚcreate_connect_args&sP
ü 
ÿ
 
 
  z+OracleDialect_cx_oracle.create_connect_argscCstdd„|jj d¡DƒƒS)Ncss|]}t|ƒVqdSrrrÚrrrrÜjszCOracleDialect_cx_oracle._get_server_version_info.<locals>.<genexpr>rz)rârèrárïrçrrrÚ_get_server_version_infoisz0OracleDialect_cx_oracle._get_server_version_infocCs^|j\}t||jj|jjfƒr.dt|ƒkr.dSt|dƒrF|jdkrFdSt     dt|ƒ¡rZdSdS)Nz not connectedTÚcode>é) é* é    éé\    é? z(^(?:DPI-1010|DPI-1080|DPY-1001|DPY-4011)F)
Úargsr2rZInterfaceErrorZ DatabaseErrorrír¢r"rßrà)rÚerèr ÚerrorrrrÚ is_disconnectlsÿ
þz%OracleDialect_cx_oracle.is_disconnectcCs"t ddd¡}dd|ddfS)z¶create a two-phase transaction ID.
 
        this id will be passed to do_begin_twophase(), do_rollback_twophase(),
        do_commit_twophase().  its format is unspecified.
 
        rrÝé€i4z%032xé    )ÚrandomÚrandint)rZid_rrrÚ
create_xidsz"OracleDialect_cx_oracle.create_xidcCs"t|tƒrt|ƒ}| ||¡dSr)r2rârÂZ executemany)rr Z    statementrŸÚcontextrrrÚdo_executemanyšs
z&OracleDialect_cx_oracle.do_executemanycCs|jj|Ž||jjd<dS)NZ cx_oracle_xid)rèÚbeginÚinfo)rrèÚxidrrrÚdo_begin_twophaseŸs z)OracleDialect_cx_oracle.do_begin_twophasecCs|j ¡}||jd<dS)NÚcx_oracle_prepared)rèÚpreparer5)rrèr6rórrrÚdo_prepare_twophase£s
z+OracleDialect_cx_oracle.do_prepare_twophaseFcCs| |j¡dSr)Z do_rollbackrè)rrèr6Ú is_preparedÚrecoverrrrÚdo_rollback_twophase§sz,OracleDialect_cx_oracle.do_rollback_twophasecCs<|s| |j¡n&|rtdƒ‚|jd}|r8| |j¡dS)Nz*2pc recovery not implemented for cx_Oracler8)Z    do_commitrèrÁr5)rrèr6r;r<Z oci_preparedrrrÚdo_commit_twophase­sÿ
z*OracleDialect_cx_oracle.do_commit_twophasecCsD|jr|jdd„|DƒŽn$dd„|Dƒ}|jfdd„|DƒŽdS)NcSsg|]\}}}|‘qSrr©r¶r¤r§Zsqltyperrrr¸Âsz>OracleDialect_cx_oracle.do_set_input_sizes.<locals>.<listcomp>css |]\}}}|r||fVqdSrrr?rrrrÜÅsþz=OracleDialect_cx_oracle.do_set_input_sizes.<locals>.<genexpr>cSsi|]\}}||“qSrr)r¶r¤r§rrrÚ
<dictcomp>Ësz>OracleDialect_cx_oracle.do_set_input_sizes.<locals>.<dictcomp>)Ú
positionalZ setinputsizes)rr Zlist_of_tuplesr2Z
collectionrrrÚdo_set_input_sizes½s ÿþz*OracleDialect_cx_oracle.do_set_input_sizescCs tdƒ‚dS)Nz5recover two phase query for cx_Oracle not implemented)rÁrçrrrÚdo_recover_twophaseÍsÿz+OracleDialect_cx_oracle.do_recover_twophase)TTrÊNN)N)TF)TF)jr.r/r0Zsupports_statement_cacher—Zexecution_ctx_clsrqZstatement_compilerZsupports_sane_rowcountZsupports_sane_multi_rowcountZinsert_executemany_returningZ4insert_executemany_returning_sort_by_parameter_orderZupdate_executemany_returningZdelete_executemany_returningr Z
BindTypingZ SETINPUTSIZESZ bind_typingrrrÑÚupdaterr×rPÚNumericr1ZFloatÚoracleÚ BINARY_FLOATrIÚ BINARY_DOUBLErKÚIntegerrrrLÚDaterMÚ LargeBinaryreÚBooleanZ_OracleBooleanZIntervalrlrmÚTextr_ÚStringrarÔr^ÚCHARrSrXrUrdrbÚLONGr`ÚRAWrnrÓrYZNVARCHARrWÚUuidrFr¥r[rprorÂZexecute_sequence_formatrÏr r–rÎZdeprecated_paramsrÌrÕÚ classmethodrärårôrörùrærÿr;r<rrrr r!r,r1r3r7r:r=r>rBrCrkrrrirrÇÇsÐçÿÿ ú 6
 /     -U    C#
ÿ
ÿ
rÇ)KÚ__doc__Ú
__future__rr;r/rßÚrrFrrrÚtypesrr
r Zenginer r»r rZsqlrZ sql._typingrrrIrrEr1rRrFrHrGrIrHrKrLZ _OracleDaterMr×rPrRrOrSrXrUZ    NVARCHAR2rWrÓrYr¥r[rÔr^rMr_rPr`rNrardrbrKrermrlrQrnrprorqr—rÇr!rrrrÚ<module>    sj"             L HP