PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
 ec@@sgdZddlmZddlZddlZddlZddlmZddlm Z ddlm Z ddlm Z d d lm Z d d lm Z d d lmZd d lmZd dlmZd dlmZd dlmZejdZeeddZdejfdYZdejfdYZdefdYZ de ej!fdYZ"de ej#fdYZ$defdYZ%d ej&fd!YZ'd"ej(fd#YZ)d$ej*fd%YZ+d&ej,fd'YZ-d(ej.fd)YZ/d*ej0fd+YZ1d,ej2fd-YZ3d.ej4fd/YZ5d0ej6fd1YZ7d2ej8fd3YZ9d4ej:fd5YZ;d6ej<fd7YZ=d8ej>fd9YZ?d:ej@fd;YZAd<ejBfd=YZCd>e fd?YZDd@e fdAYZEdBe fdCYZFeFZGdS(DsL .. dialect:: oracle+cx_oracle :name: cx-Oracle :dbapi: cx_oracle :connectstring: oracle+cx_oracle://user:pass@hostname:port[/dbname][?service_name=[&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 `_, 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 `_ 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 `_ 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 `_. 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_unicode=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_unicode`` - see :ref:`cx_oracle_unicode` for detail. * ``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://", 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 `_. Using Oracle Database Resident Connection Pooling (DRCP) -------------------------------------------------------- When using Oracle's `DRCP `_, 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 `_. 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://", 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. Under Python 2, cx_Oracle also supports Python Unicode objects directly. 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 `_ 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) `_. .. seealso:: `Characters Sets and National Language Support (NLS) `_ - 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. Unicode Coercion of result rows under Python 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ When result sets are fetched that include strings, under Python 3 the cx_Oracle DBAPI returns all strings as Python Unicode objects, since Python 3 only has a Unicode string type. This occurs for data fetched from datatypes such as VARCHAR2, CHAR, CLOB, NCHAR, NCLOB, etc. In order to provide cross- compatibility under Python 2, the SQLAlchemy cx_Oracle dialect will add Unicode-conversion to string data under Python 2 as well. Historically, this made use of converters that were supplied by cx_Oracle but were found to be non-performant; SQLAlchemy's own converters are used for the string to Unicode conversion under Python 2. To disable the Python 2 Unicode conversion for VARCHAR2, CHAR, and CLOB, the flag ``coerce_to_unicode=False`` can be passed to :func:`_sa.create_engine`. .. versionchanged:: 1.3 Unicode conversion is applied to all string values by default under python 2. The ``coerce_to_unicode`` now defaults to True and can be set to False to disable the Unicode coercion of strings that are delivered as VARCHAR2/CHAR/CLOB data. .. _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 `_ 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, however cx_Oracle 6 is recommended for complete support. .. _cx_oracle_lob: LOB Objects ----------- cx_oracle returns oracle LOBs using the cx_oracle.LOB object. SQLAlchemy converts these to strings so that the interface of the Binary type is consistent with that of other backends, which takes place within a cx_Oracle outputtypehandler. cx_Oracle prior to version 6 would require that LOB objects be read before a new batch of rows would be read, as determined by the ``cursor.arraysize``. As of the 6 series, this limitation has been lifted. Nevertheless, because SQLAlchemy pre-reads these LOBs up front, this issue is avoided in any case. To disable the auto "read()" feature of the dialect, the flag ``auto_convert_lobs=False`` may be passed to :func:`_sa.create_engine`. Under the cx_Oracle 5 series, having this flag turned off means there is the chance of reading from a stale LOB object if not read as it is fetched. With cx_Oracle 6, this issue is resolved. .. versionchanged:: 1.2 the LOB handling system has been greatly simplified internally to make use of outputtypehandlers, and no longer makes use of alternate "buffered" result set objects. 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. i(tabsolute_importNi(tbase(tOracleCompiler(t OracleDialect(tOracleExecutionContexti(texc(t processors(ttypes(tutil(tcursor(t expression(tcompats[%\(\):\[\]\.\/\? ]s %():[]./? t PAZCCCCCCCCt_OracleIntegercB@s#eZdZdZdZRS(cC@stS(N(tint(tselftdbapi((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytget_dbapi_typescC@s+|j}|j|jdd|jdtS(Nit arraysizet outconverter(RtvartSTRINGRR(RtdialectR t cx_Oracle((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt_cx_oracle_vars c@sfd}|S(Nc@sj|S(N(R(R tnamet default_typetsizet precisiontscale(RR(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pythandlers((RRR((RRsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt_cx_oracle_outputtypehandlers(t__name__t __module__RRR(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR s  t_OracleNumericcB@s)eZeZdZdZdZRS(c@sR|jdkrdS|jrGtjtj|jfd}|StjSdS(Nic@sIt|ttfr|S|dk rA|jrAt|S|SdS(N(t isinstanceRtfloattNonet is_infinite(tvalue(t processor(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytprocesss   ( RR%t asdecimalRtto_decimal_processor_factorytdecimaltDecimalt_effective_decimal_return_scaletto_float(RRR)((R(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytbind_processors cC@sdS(N(R%(RRtcoltype((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytresult_processorsc@s.jjfd}|S(Nc@sd}|rjr]|jkr6|}tj}qrHtj}qj}j}qjrv|dkrvdSj}nsjr|jkr|}tj}qrtj}qj}j}n"jr|dkrdSj}|j|dd|j d|S(NiiRR( R%R*t NATIVE_FLOATR,R-Rt _to_decimalt is_numberRR(R RRRRRRttype_(RRtis_cx_oracle_6R(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs:             (Rt_is_cx_oracle_6(RRR((RRR7RsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs  2(R R!tFalseR5R0R2R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR"s  t_OracleBinaryFloatcB@seZdZRS(cC@s|jS(N(R3(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRMs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR:Lst_OracleBINARY_FLOATcB@seZRS((R R!(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR;Qst_OracleBINARY_DOUBLEcB@seZRS((R R!(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR<Ust _OracleNUMBERcB@seZeZRS((R R!tTrueR5(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR=Yst _OracleDatecB@seZdZdZRS(cC@sdS(N(R%(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR0^scC@s d}|S(NcS@s|dk r|jS|SdS(N(R%tdate(R'((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR)bs  ((RRR1R)((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR2as (R R!R0R2(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR?]s t _OracleCharcB@seZdZRS(cC@s|jS(N(t FIXED_CHAR(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRns(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRAmst _OracleNCharcB@seZdZRS(cC@s|jS(N(t FIXED_NCHAR(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRss(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRCrst_OracleUnicodeStringNCHARcB@seZdZRS(cC@s|jS(N(tNCHAR(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRxs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyREwst_OracleUnicodeStringCHARcB@seZdZRS(cC@s|jS(N(t LONG_STRING(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR}s(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRG|st_OracleUnicodeTextNCLOBcB@seZdZRS(cC@s|jS(N(tNCLOB(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRIst_OracleUnicodeTextCLOBcB@seZdZRS(cC@s|jS(N(tCLOB(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRKst _OracleTextcB@seZdZRS(cC@s|jS(N(RL(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRMst _OracleLongcB@seZdZRS(cC@s|jS(N(RH(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRNst _OracleStringcB@seZRS((R R!(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyROst _OracleEnumcB@seZdZRS(c@s(tjj||fd}|S(Nc@s|}|S(N((R'traw_str(t enum_proc(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR)s (tsqltypestEnumR0(RRR)((RRsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR0s(R R!R0(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRPst _OracleBinarycB@s#eZdZdZdZRS(cC@s|jS(N(tBLOB(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRscC@sdS(N(R%(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR0scC@s*|js dStt|j||SdS(N(tauto_convert_lobsR%tsuperRUR2(RRR1((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR2s (R R!RR0R2(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRUs  t_OracleIntervalcB@seZdZRS(cC@s|jS(N(tINTERVAL(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRYst _OracleRawcB@seZRS((R R!(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR[st _OracleRowidcB@seZdZRS(cC@s|jS(N(tROWID(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs(R R!R(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR\stOracleCompiler_cx_oraclecB@seZeZdZRS(cK@sKt|dd}|tksO|tk r||jj|r||jdt r|d|}||d<|}tj|||S|jdd}|s8t j |rt j d|}|dj s|ddkrd|}n||d<|}q8|dj s|ddkr8d|}||d<|}q8ntj|||S( Ntquotet post_compiles"%s"t escaped_fromcS@st|jdS(Ni(t_ORACLE_BIND_TRANSLATE_CHARStgroup(tm((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyttit_tD( tgetattrR%R>R9tpreparert_bindparam_requires_quotestgetRtbindparam_stringt_ORACLE_BIND_TRANSLATE_REtsearchtsubtisdigit(RRtkwR_t quoted_nameRatnew_name((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRms0             (R R!R>t_oracle_cx_sql_compilerRm(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR^st OracleExecutionContext_cx_oraclecB@sMeZdZdZdZdZdZdZdZ dZ RS(c@sD|jjs|jjr@|jj}x|jjjD]}|jr7|jj|}|jj |j }t |dr|j |j |j |j|dZ@eAjBddeeeddddZCeDdZEdZFeGdZHd ZId ZJd ZKd ZLd ZMeNjOZPdZQdZRdZSdZTdZUdZVddZWdZXdZYeeZdZ[eeZdZ\dZ]dZ^RS(t cx_oracletthreadeds1.3s8The 'threaded' parameter to the cx_oracle 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`.i2c K@stj||||_||_|dk r:||_n||_||_||_|j r|j j |_ t |j t jt __future__tdml_ret_array_valRR8( RRWRRRRRtkwargsRR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRsP                    cC@sD|jr@|jdkr&i|jd6Stjd|jfniS(NiitencodingErrorss4cx_oracle version %r does not support encodingErrors(ii(RRRtwarn(R((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt_cursor_var_unicode_kwargss cC@sCtjd|}|r;td|jdddDSdSdS(Ns(\d+)\.(\d+)(?:\.(\d+))?cs@s'|]}|dk rt|VqdS(N(R%R(t.0tx((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pys &siiii(iii(tretmatchRRc(RRRd((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR#s#cC@sddl}|S(Ni(R(tclsR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR*s cC@s<tt|j||jr+t|_n|j|dS(N(RXRt initializet _is_oracle_8R9tsupports_unicode_bindst_detect_decimal_char(Rt connection((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyR0s  c C@s|j}|jt}|jdi|d6|j}|jdd\}}}|jdi|d6|d6|d6|j}|dkrtj d n|d } WdQX| S( Ns begin :trans_id := dbms_transaction.local_transaction_id( TRUE ); end; ttrans_idt.isSELECT 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))txidusntxidslottxidsqns"could not retrieve isolation leveli( R RtstrtexecuteRtsplittfetchoneR%RR( RRR toutvalRRRRtrowtresult((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytget_isolation_level7s     cC@svt|dr|j}n|}|dkr9t|_n9t|_|j|j}|jd|WdQXdS(Ntdbapi_connectiont AUTOCOMMITs$ALTER SESSION SET ISOLATION_LEVEL=%s(RRR>t autocommitR9trollbackR R(RRtlevelRR ((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytset_isolation_levelfs     c@s|j}|jf}fd}||_|jd|jd}|jdd}|dj swtWdQX|_jdkrj j fd_ fd_ ndS( Nc@s|jjjdd|jS(NiR(RRRR(R Rt defaultTypeRRR(R(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRssSELECT 1.1 FROM DUALit0iRc@s|jjdS(NR(treplacet _decimal_char(R'(t_detect_decimalR(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyResc@s|jjdS(NR(RR(R'(R4R(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRes( RR RRRtlstripRqRRRR4(RRRR RR't decimal_char((RR4RsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRss       cC@s'd|kr|j|St|SdS(NR(R4R(RR'((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs  c@s[|jtdtjtdtjfd}|S(s^establish the default outputtypehandler established at the connection level. R*c@s|jkr|jk rjs+dS|dkrh|dkrh|jjddjd|jS|r|dkr||||||S||||||Sn^jrS|jj fkrS|j k rS|j k rSt j r1tjjdj}|jj||jd|S|jtj||jjSnjr|j j fkrt j rtjjdj}|jj||jd|S|jj||jjSn4jr |jfkr |jj||jSdS(NiiiRRRw(ii(tNUMBERR3RR%RRRRRRBRLRJR RRRRRRt text_typeRRWRHRVt LONG_BINARY(R RRRRRR(RRt float_handlertnumber_handler(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRsp            (RR=R>RR9(RR((RRRRsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt'_generate_connection_outputtype_handlers     Xc@s|jfd}|S(Nc@s |_dS(N(R(tconn(R(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt on_connects(R(RR((RsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs c @st|j}x`dD]X}||krtjd|ddtj||tt||j|qqW|j}|jdd}|s|r%|j }|rt |}nd}|r|rt j dn|ri|d 6}n|ri|d6}njj|j||}n |j}|dk rG||d ^sR(RRRR(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt_get_server_version_info]scC@s|j\}t||jj|jjfrCdt|krCtSt|drw|jddddddhkrwtSt j d t|rtSt S( Ns not connectedtcodeii* i) i? i i\ s(^(?:DPI-1010|DPI-1080|DPY-1001|DPY-4011)( targsR#RtInterfaceErrort DatabaseErrorRR>RR RRR9(RteRR terror((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt is_disconnect`s   cC@s'tjdd}dd|ddfS(screate a two-phase transaction ID. this id will be passed to do_begin_twophase(), do_rollback_twophase(), do_commit_twophase(). its format is unspecified. iiii4s%032xi l (trandomtrandint(Rtid_((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyt create_xidscC@s2t|trt|}n|j||dS(N(R#Rtlistt executemany(RR t statementRtcontext((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytdo_executemanyscC@s$|jj|||jjds c3@s1|]'\}}jj|d|fVqdS(iN(Rt_encoder(RRR(R(sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pys scS@si|]\}}||qS(((RRR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pys s (t positionalt setinputsizesR(RR tlist_of_tuplesR.RRR@t collection((RsW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytdo_set_input_sizess &    cC@stddS(Ns5recover two phase query for cx_Oracle not implemented(R=(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytdo_recover_twophasesN(s1.3s8The 'threaded' parameter to the cx_oracle 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`.(_R R!R>tsupports_statement_cacheRvtexecution_ctx_clsR^tstatement_compilertsupports_sane_rowcounttsupports_sane_multi_rowcounttsupports_unicode_statementsRtuse_setinputsizestdriverR"RStNumerictFloatR;toraclet BINARY_FLOATR<t BINARY_DOUBLER tIntegerR=RR?tDateRUt LargeBinaryt_OracleBooleantBooleanRYtIntervalRZRMtTextROtStringRKRRAtCHARRCRFRPRTRNtLONGR[tRAWRGRREtNVARCHARRIRJR\R]RR+texecute_sequence_formatR%RRtdeprecated_paramsRtpropertyRRt classmethodRRRRRRR,R-R4RRRRR&R*R/R4R7R9R;R?RFRG(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pyRs                         @   / -   j B  #    (Ht__doc__RRR,R'RRfRRRRRRRRRRSRtengineR RtsqlR R tcompileRnR tzipRbRUR RPR"R:RSR;RTR<R=RVR?R]RARFRCt NVARCHAR2RERRGRJRIRRKR[RMR^RNR\RORTRPRWRURZRYR_R[R]R\R^RvRR(((sW/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/cx_oracle.pytsX   T 29