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@sidZddlmZddlZddlmZddlmZddlmZddlm Z dd lm Z dd l m Z dd l m Z dd l mZdd l mZddl mZdd l m Zddl mZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddl mZedjZ edjZ!dej"fdYZ#e#Z$dej%fdYZ&d efd!YZ'eZ(d"ej)ej*fd#YZ+d$ej,fd%YZ-d&ej,fd'YZ.d(ej,fd)YZ/d*ej0fd+YZ1d,ej%fd-YZ2d.ej3fd/YZ4d0ej5ej6fd1YZ7d2ej8fd3YZ9d4ej:fd5YZ;ie;ej:6e7ej<6e4ej36Z=ied 6ed66ed76ed86e4d.6e+d"6ed96e1d*6ed:6e&d6ed;6ed<6e7d=6e#d6ed>6e-d?6e2d,6e.d&6e/d(6e9d26Z>d@ej?fdAYZ@dBejAfdCYZBdDejCfdEYZDdFejEfdGYZFdHe jGfdIYZHdJe jIfdKYZJdLe jKfdMYZLdS(NsNU .. dialect:: oracle :name: Oracle :full_support: 18c :normal_support: 11+ :best_effort: 8+ Auto Increment Behavior ----------------------- SQLAlchemy Table objects which include integer primary keys are usually assumed to have "autoincrementing" behavior, meaning they can generate their own primary key values upon INSERT. For use within Oracle, two options are available, which are the use of IDENTITY columns (Oracle 12 and above only) or the association of a SEQUENCE with the column. Specifying GENERATED AS IDENTITY (Oracle 12 and above) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Starting from version 12 Oracle can make use of identity columns using the :class:`_sql.Identity` to specify the autoincrementing behavior:: t = Table('mytable', metadata, Column('id', Integer, Identity(start=3), primary_key=True), Column(...), ... ) The CREATE TABLE for the above :class:`_schema.Table` object would be: .. sourcecode:: sql CREATE TABLE mytable ( id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 3), ..., PRIMARY KEY (id) ) The :class:`_schema.Identity` object support many options to control the "autoincrementing" behavior of the column, like the starting value, the incrementing value, etc. In addition to the standard options, Oracle supports setting :paramref:`_schema.Identity.always` to ``None`` to use the default generated mode, rendering GENERATED AS IDENTITY in the DDL. It also supports setting :paramref:`_schema.Identity.on_null` to ``True`` to specify ON NULL in conjunction with a 'BY DEFAULT' identity column. Using a SEQUENCE (all Oracle versions) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Older version of Oracle had no "autoincrement" feature, SQLAlchemy relies upon sequences to produce these values. With the older Oracle versions, *a sequence must always be explicitly specified to enable autoincrement*. This is divergent with the majority of documentation examples which assume the usage of an autoincrement-capable database. To specify sequences, use the sqlalchemy.schema.Sequence object which is passed to a Column construct:: t = Table('mytable', metadata, Column('id', Integer, Sequence('id_seq'), primary_key=True), Column(...), ... ) This step is also required when using table reflection, i.e. autoload_with=engine:: t = Table('mytable', metadata, Column('id', Integer, Sequence('id_seq'), primary_key=True), autoload_with=engine ) .. versionchanged:: 1.4 Added :class:`_schema.Identity` construct in a :class:`_schema.Column` to specify the option of an autoincrementing column. .. _oracle_isolation_level: Transaction Isolation Level / Autocommit ---------------------------------------- The Oracle database supports "READ COMMITTED" and "SERIALIZABLE" modes of isolation. The AUTOCOMMIT isolation level is also supported by the cx_Oracle dialect. To set using per-connection execution options:: connection = engine.connect() connection = connection.execution_options( isolation_level="AUTOCOMMIT" ) For ``READ COMMITTED`` and ``SERIALIZABLE``, the Oracle dialect sets the level at the session level using ``ALTER SESSION``, which is reverted back to its default setting when the connection is returned to the connection pool. Valid values for ``isolation_level`` include: * ``READ COMMITTED`` * ``AUTOCOMMIT`` * ``SERIALIZABLE`` .. note:: The implementation for the :meth:`_engine.Connection.get_isolation_level` method as implemented by the Oracle dialect necessarily forces the start of a transaction using the Oracle LOCAL_TRANSACTION_ID function; otherwise no level is normally readable. Additionally, the :meth:`_engine.Connection.get_isolation_level` method will raise an exception if the ``v$transaction`` view is not available due to permissions or other reasons, which is a common occurrence in Oracle installations. The cx_Oracle dialect attempts to call the :meth:`_engine.Connection.get_isolation_level` method when the dialect makes its first connection to the database in order to acquire the "default"isolation level. This default level is necessary so that the level can be reset on a connection after it has been temporarily modified using :meth:`_engine.Connection.execution_options` method. In the common event that the :meth:`_engine.Connection.get_isolation_level` method raises an exception due to ``v$transaction`` not being readable as well as any other database-related failure, the level is assumed to be "READ COMMITTED". No warning is emitted for this initial first-connect condition as it is expected to be a common restriction on Oracle databases. .. versionadded:: 1.3.16 added support for AUTOCOMMIT to the cx_oracle dialect as well as the notion of a default isolation level .. versionadded:: 1.3.21 Added support for SERIALIZABLE as well as live reading of the isolation level. .. versionchanged:: 1.3.22 In the event that the default isolation level cannot be read due to permissions on the v$transaction view as is common in Oracle installations, the default isolation level is hardcoded to "READ COMMITTED" which was the behavior prior to 1.3.21. .. seealso:: :ref:`dbapi_autocommit` Identifier Casing ----------------- In Oracle, the data dictionary represents all case insensitive identifier names using UPPERCASE text. SQLAlchemy on the other hand considers an all-lower case identifier name to be case insensitive. The Oracle dialect converts all case insensitive identifiers to and from those two formats during schema level communication, such as reflection of tables and indexes. Using an UPPERCASE name on the SQLAlchemy side indicates a case sensitive identifier, and SQLAlchemy will quote the name - this will cause mismatches against data dictionary data received from Oracle, so unless identifier names have been truly created as case sensitive (i.e. using quoted names), all lowercase names should be used on the SQLAlchemy side. .. _oracle_max_identifier_lengths: Max Identifier Lengths ---------------------- Oracle has changed the default max identifier length as of Oracle Server version 12.2. Prior to this version, the length was 30, and for 12.2 and greater it is now 128. This change impacts SQLAlchemy in the area of generated SQL label names as well as the generation of constraint names, particularly in the case where the constraint naming convention feature described at :ref:`constraint_naming_conventions` is being used. To assist with this change and others, Oracle includes the concept of a "compatibility" version, which is a version number that is independent of the actual server version in order to assist with migration of Oracle databases, and may be configured within the Oracle server itself. This compatibility version is retrieved using the query ``SELECT value FROM v$parameter WHERE name = 'compatible';``. The SQLAlchemy Oracle dialect, when tasked with determining the default max identifier length, will attempt to use this query upon first connect in order to determine the effective compatibility version of the server, which determines what the maximum allowed identifier length is for the server. If the table is not available, the server version information is used instead. As of SQLAlchemy 1.4, the default max identifier length for the Oracle dialect is 128 characters. Upon first connect, the compatibility version is detected and if it is less than Oracle version 12.2, the max identifier length is changed to be 30 characters. In all cases, setting the :paramref:`_sa.create_engine.max_identifier_length` parameter will bypass this change and the value given will be used as is:: engine = create_engine( "oracle+cx_oracle://scott:tiger@oracle122", max_identifier_length=30) The maximum identifier length comes into play both when generating anonymized SQL labels in SELECT statements, but more crucially when generating constraint names from a naming convention. It is this area that has created the need for SQLAlchemy to change this default conservatively. For example, the following naming convention produces two very different constraint names based on the identifier length:: from sqlalchemy import Column from sqlalchemy import Index from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import Table from sqlalchemy.dialects import oracle from sqlalchemy.schema import CreateIndex m = MetaData(naming_convention={"ix": "ix_%(column_0N_name)s"}) t = Table( "t", m, Column("some_column_name_1", Integer), Column("some_column_name_2", Integer), Column("some_column_name_3", Integer), ) ix = Index( None, t.c.some_column_name_1, t.c.some_column_name_2, t.c.some_column_name_3, ) oracle_dialect = oracle.dialect(max_identifier_length=30) print(CreateIndex(ix).compile(dialect=oracle_dialect)) With an identifier length of 30, the above CREATE INDEX looks like:: CREATE INDEX ix_some_column_name_1s_70cd ON t (some_column_name_1, some_column_name_2, some_column_name_3) However with length=128, it becomes:: CREATE INDEX ix_some_column_name_1some_column_name_2some_column_name_3 ON t (some_column_name_1, some_column_name_2, some_column_name_3) Applications which have run versions of SQLAlchemy prior to 1.4 on an Oracle server version 12.2 or greater are therefore subject to the scenario of a database migration that wishes to "DROP CONSTRAINT" on a name that was previously generated with the shorter length. This migration will fail when the identifier length is changed without the name of the index or constraint first being adjusted. Such applications are strongly advised to make use of :paramref:`_sa.create_engine.max_identifier_length` in order to maintain control of the generation of truncated names, and to fully review and test all database migrations in a staging environment when changing this value to ensure that the impact of this change has been mitigated. .. versionchanged:: 1.4 the default max_identifier_length for Oracle is 128 characters, which is adjusted down to 30 upon first connect if an older version of Oracle server (compatibility version < 12.2) is detected. LIMIT/OFFSET/FETCH Support -------------------------- Methods like :meth:`_sql.Select.limit` and :meth:`_sql.Select.offset` currently use an emulated approach for LIMIT / OFFSET based on window functions, which involves creation of a subquery using ``ROW_NUMBER`` that is prone to performance issues as well as SQL construction issues for complex statements. However, this approach is supported by all Oracle versions. See notes below. When using Oracle 12c and above, use the :meth:`_sql.Select.fetch` method instead; this will render the more modern ``FETCH FIRST N ROW / OFFSET N ROWS`` syntax. Notes on LIMIT / OFFSET emulation (when fetch() method cannot be used) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If using :meth:`_sql.Select.limit` and :meth:`_sql.Select.offset`, or with the ORM the :meth:`_orm.Query.limit` and :meth:`_orm.Query.offset` methods, and the :meth:`_sql.Select.fetch` method **cannot** be used instead, the following notes apply: * SQLAlchemy currently makes use of ROWNUM to achieve LIMIT/OFFSET; the exact methodology is taken from https://blogs.oracle.com/oraclemagazine/on-rownum-and-limiting-results . * the "FIRST_ROWS()" optimization keyword is not used by default. To enable the usage of this optimization directive, specify ``optimize_limits=True`` to :func:`_sa.create_engine`. .. versionchanged:: 1.4 The Oracle dialect renders limit/offset integer values using a "post compile" scheme which renders the integer directly before passing the statement to the cursor for execution. The ``use_binds_for_limits`` flag no longer has an effect. .. seealso:: :ref:`change_4808`. * A future release may use ``FETCH FIRST N ROW / OFFSET N ROWS`` automatically when :meth:`_sql.Select.limit`, :meth:`_sql.Select.offset`, :meth:`_orm.Query.limit`, :meth:`_orm.Query.offset` are used. .. _oracle_returning: RETURNING Support ----------------- The Oracle database supports a limited form of RETURNING, in order to retrieve result sets of matched rows from INSERT, UPDATE and DELETE statements. Oracle's RETURNING..INTO syntax only supports one row being returned, as it relies upon OUT parameters in order to function. In addition, supported DBAPIs have further limitations (see :ref:`cx_oracle_returning`). SQLAlchemy's "implicit returning" feature, which employs RETURNING within an INSERT and sometimes an UPDATE statement in order to fetch newly generated primary key values and other SQL defaults and expressions, is normally enabled on the Oracle backend. By default, "implicit returning" typically only fetches the value of a single ``nextval(some_seq)`` expression embedded into an INSERT in order to increment a sequence within an INSERT statement and get the value back at the same time. To disable this feature across the board, specify ``implicit_returning=False`` to :func:`_sa.create_engine`:: engine = create_engine("oracle://scott:tiger@dsn", implicit_returning=False) Implicit returning can also be disabled on a table-by-table basis as a table option:: # Core Table my_table = Table("my_table", metadata, ..., implicit_returning=False) # declarative class MyClass(Base): __tablename__ = 'my_table' __table_args__ = {"implicit_returning": False} .. seealso:: :ref:`cx_oracle_returning` - additional cx_oracle-specific restrictions on implicit returning. ON UPDATE CASCADE ----------------- Oracle doesn't have native ON UPDATE CASCADE functionality. A trigger based solution is available at https://asktom.oracle.com/tkyte/update_cascade/index.html . When using the SQLAlchemy ORM, the ORM has limited ability to manually issue cascading updates - specify ForeignKey objects using the "deferrable=True, initially='deferred'" keyword arguments, and specify "passive_updates=False" on each relationship(). Oracle 8 Compatibility ---------------------- When Oracle 8 is detected, the dialect internally configures itself to the following behaviors: * the use_ansi flag is set to False. This has the effect of converting all JOIN phrases into the WHERE clause, and in the case of LEFT OUTER JOIN makes use of Oracle's (+) operator. * the NVARCHAR2 and NCLOB datatypes are no longer generated as DDL when the :class:`~sqlalchemy.types.Unicode` is used - VARCHAR2 and CLOB are issued instead. This because these types don't seem to work correctly on Oracle 8 even though they are available. The :class:`~sqlalchemy.types.NVARCHAR` and :class:`~sqlalchemy.dialects.oracle.NCLOB` types will always generate NVARCHAR2 and NCLOB. * the "native unicode" mode is disabled when using cx_oracle, i.e. SQLAlchemy encodes all Python unicode objects to "string" before passing in as bind parameters. Synonym/DBLINK Reflection ------------------------- When using reflection with Table objects, the dialect can optionally search for tables indicated by synonyms, either in local or remote schemas or accessed over DBLINK, by passing the flag ``oracle_resolve_synonyms=True`` as a keyword argument to the :class:`_schema.Table` construct:: some_table = Table('some_table', autoload_with=some_engine, oracle_resolve_synonyms=True) When this flag is set, the given name (such as ``some_table`` above) will be searched not just in the ``ALL_TABLES`` view, but also within the ``ALL_SYNONYMS`` view to see if this name is actually a synonym to another name. If the synonym is located and refers to a DBLINK, the oracle dialect knows how to locate the table's information using DBLINK syntax(e.g. ``@dblink``). ``oracle_resolve_synonyms`` is accepted wherever reflection arguments are accepted, including methods such as :meth:`_schema.MetaData.reflect` and :meth:`_reflection.Inspector.get_columns`. If synonyms are not in use, this flag should be left disabled. .. _oracle_constraint_reflection: Constraint Reflection --------------------- The Oracle dialect can return information about foreign key, unique, and CHECK constraints, as well as indexes on tables. Raw information regarding these constraints can be acquired using :meth:`_reflection.Inspector.get_foreign_keys`, :meth:`_reflection.Inspector.get_unique_constraints`, :meth:`_reflection.Inspector.get_check_constraints`, and :meth:`_reflection.Inspector.get_indexes`. .. versionchanged:: 1.2 The Oracle dialect can now reflect UNIQUE and CHECK constraints. When using reflection at the :class:`_schema.Table` level, the :class:`_schema.Table` will also include these constraints. Note the following caveats: * When using the :meth:`_reflection.Inspector.get_check_constraints` method, Oracle builds a special "IS NOT NULL" constraint for columns that specify "NOT NULL". This constraint is **not** returned by default; to include the "IS NOT NULL" constraints, pass the flag ``include_all=True``:: from sqlalchemy import create_engine, inspect engine = create_engine("oracle+cx_oracle://s:t@dsn") inspector = inspect(engine) all_check_constraints = inspector.get_check_constraints( "some_table", include_all=True) * in most cases, when reflecting a :class:`_schema.Table`, a UNIQUE constraint will **not** be available as a :class:`.UniqueConstraint` object, as Oracle mirrors unique constraints with a UNIQUE index in most cases (the exception seems to be when two or more unique constraints represent the same columns); the :class:`_schema.Table` will instead represent these using :class:`.Index` with the ``unique=True`` flag set. * Oracle creates an implicit index for the primary key of a table; this index is **excluded** from all index results. * the list of columns reflected for an index will not include column names that start with SYS_NC. Table names with SYSTEM/SYSAUX tablespaces ------------------------------------------- The :meth:`_reflection.Inspector.get_table_names` and :meth:`_reflection.Inspector.get_temp_table_names` methods each return a list of table names for the current engine. These methods are also part of the reflection which occurs within an operation such as :meth:`_schema.MetaData.reflect`. By default, these operations exclude the ``SYSTEM`` and ``SYSAUX`` tablespaces from the operation. In order to change this, the default list of tablespaces excluded can be changed at the engine level using the ``exclude_tablespaces`` parameter:: # exclude SYSAUX and SOME_TABLESPACE, but not SYSTEM e = create_engine( "oracle://scott:tiger@xe", exclude_tablespaces=["SYSAUX", "SOME_TABLESPACE"]) .. versionadded:: 1.1 DateTime Compatibility ---------------------- Oracle has no datatype known as ``DATETIME``, it instead has only ``DATE``, which can actually store a date and time value. For this reason, the Oracle dialect provides a type :class:`_oracle.DATE` which is a subclass of :class:`.DateTime`. This type has no special behavior, and is only present as a "marker" for this type; additionally, when a database column is reflected and the type is reported as ``DATE``, the time-supporting :class:`_oracle.DATE` type is used. .. versionchanged:: 0.9.4 Added :class:`_oracle.DATE` to subclass :class:`.DateTime`. This is a change as previous versions would reflect a ``DATE`` column as :class:`_types.DATE`, which subclasses :class:`.Date`. The only significance here is for schemes that are examining the type of column for use in special Python translations or for migrating schemas to other database backends. .. _oracle_table_options: Oracle Table Options ------------------------- The CREATE TABLE phrase supports the following options with Oracle in conjunction with the :class:`_schema.Table` construct: * ``ON COMMIT``:: Table( "some_table", metadata, ..., prefixes=['GLOBAL TEMPORARY'], oracle_on_commit='PRESERVE ROWS') .. versionadded:: 1.0.0 * ``COMPRESS``:: Table('mytable', metadata, Column('data', String(32)), oracle_compress=True) Table('mytable', metadata, Column('data', String(32)), oracle_compress=6) The ``oracle_compress`` parameter accepts either an integer compression level, or ``True`` to use the default compression level. .. versionadded:: 1.0.0 .. _oracle_index_options: Oracle Specific Index Options ----------------------------- Bitmap Indexes ~~~~~~~~~~~~~~ You can specify the ``oracle_bitmap`` parameter to create a bitmap index instead of a B-tree index:: Index('my_index', my_table.c.data, oracle_bitmap=True) Bitmap indexes cannot be unique and cannot be compressed. SQLAlchemy will not check for such limitations, only the database will. .. versionadded:: 1.0.0 Index compression ~~~~~~~~~~~~~~~~~ Oracle has a more efficient storage mode for indexes containing lots of repeated values. Use the ``oracle_compress`` parameter to turn on key compression:: Index('my_index', my_table.c.data, oracle_compress=True) Index('my_index', my_table.c.data1, my_table.c.data2, unique=True, oracle_compress=1) The ``oracle_compress`` parameter accepts either an integer specifying the number of prefix columns to compress, or ``True`` to use the default (all columns for non-unique indexes, all but the last column for unique indexes). .. versionadded:: 1.0.0 i(tgroupbyNi(tComputed(texc(tschema(tsql(tutil(tdefault(t reflection(tcompiler(t expression(tsqltypes(tvisitors(tBLOB(tCHAR(tCLOB(tFLOAT(tINTEGER(tNCHAR(tNVARCHAR(t TIMESTAMP(tVARCHAR(tcompats SHARE RAW DROP BETWEEN FROM DESC OPTION PRIOR LONG THEN DEFAULT ALTER IS INTO MINUS INTEGER NUMBER GRANT IDENTIFIED ALL TO ORDER ON FLOAT DATE HAVING CLUSTER NOWAIT RESOURCE ANY TABLE INDEX FOR UPDATE WHERE CHECK SMALLINT WITH DELETE BY ASC REVOKE LIKE SIZE RENAME NOCOMPRESS NULL GROUP VALUES AS IN VIEW EXCLUSIVE COMPRESS SYNONYM SELECT INSERT EXISTS NOT TRIGGER ELSE CREATE INTERSECT PCTFREE DISTINCT USER CONNECT SET MODE OF UNIQUE VARCHAR2 VARCHAR LOCK OR CHAR DECIMAL UNION PUBLIC AND START UID COMMENT CURRENT LEVELs<UID CURRENT_DATE SYSDATE USER CURRENT_TIME CURRENT_TIMESTAMPtRAWcBseZdZRS(R(t__name__t __module__t__visit_name__(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRWstNCLOBcBseZdZRS(R(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR^stVARCHAR2cBseZdZRS(R(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRbstNUMBERcBs8eZdZddddZdZedZRS(RcCsP|dkr't|o|dk}ntt|jd|d|d|dS(Nit precisiontscalet asdecimal(tNonetbooltsuperRt__init__(tselfRRR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR#ls cCs%tt|j|}t|_|S(N(R"RtadapttTruet_is_oracle_number(R$timpltypetret((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR%ts cCs0t|jo|jdkr%tjStjSdS(Ni(R!RR tNumerictInteger(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_type_affinityzsN(RRRR R#R%tpropertyR,(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRis tDOUBLE_PRECISIONcBseZdZRS(R.(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR.st BINARY_DOUBLEcBseZdZRS(R/(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR/st BINARY_FLOATcBseZdZRS(R0(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR0stBFILEcBseZdZRS(R1(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR1stLONGcBseZdZRS(R2(RRR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR2stDATEcBseZdZdZdZRS(sProvide the oracle DATE type. This type has no special Python behavior, except that it subclasses :class:`_types.DateTime`; this is to suit the fact that the Oracle ``DATE`` type supports a time value. .. versionadded:: 0.9.4 R3cCs|jtjtjfkS(N(R,R tDateTimetDate(R$tother((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_compare_type_affinitys(RRt__doc__RR7(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR3s tINTERVALcBsPeZdZdddZedZedZe dZ dZ RS(R9cCs||_||_dS(sConstruct an INTERVAL. Note that only DAY TO SECOND intervals are currently supported. This is due to a lack of support for YEAR TO MONTH intervals within available DBAPIs. :param day_precision: the day precision value. this is the number of digits to store for the day field. Defaults to "2" :param second_precision: the second precision value. this is the number of digits to store for the fractional seconds field. Defaults to "6". N(t day_precisiontsecond_precision(R$R:R;((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR#s cCstd|jd|jS(NR:R;(R9R:R;(tclstinterval((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_adapt_from_generic_intervals cCstjS(N(R tInterval(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR,scCs"tjdtd|jd|jS(NtnativeR;R:(R R?R&R;R:(R$tallow_nulltype((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt as_generics  cCs|S(N((R$toptvalue((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytcoerce_compared_valuesN( RRRR R#t classmethodR>R-R,tFalseRBRE(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR9s  tROWIDcBseZdZdZRS(sPOracle ROWID type. When used in a cast() or similar, generates ROWID. RH(RRR8R(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRHst_OracleBooleancBseZdZRS(cCs|jS(N(R(R$tdbapi((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_dbapi_types(RRRK(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRIst NVARCHAR2R RR RRsTIMESTAMP WITH TIME ZONEsINTERVAL DAY TO SECONDRsDOUBLE PRECISIONtOracleTypeCompilercBseZdZdZdZdZdZdZdZdZ dZ d Z d Z dded Zd Zd ZdZeZdZdZdZdZdZdZdZdZdZRS(cKs|j||S(N(t visit_DATE(R$ttype_tkw((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_datetimescKs|j||S(N(t visit_FLOAT(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_floatscKs0|jjr|j||S|j||SdS(N(tdialectt_use_nchar_for_unicodetvisit_NVARCHAR2tvisit_VARCHAR2(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_unicode s cKsFd|jdk rd|jp"d|jdk r>d|jpAdfS(NsINTERVAL DAY%s TO SECOND%ss(%d)t(R:R R;(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_INTERVALs  cKsdS(NR2((R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_LONGscKs|jr dSdSdS(NsTIMESTAMP WITH TIME ZONER(ttimezone(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_TIMESTAMPs cKs|j|d|S(NsDOUBLE PRECISION(t_generate_numeric(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_DOUBLE_PRECISION#scKs|j|d|S(NR/(R^(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_BINARY_DOUBLE&scKs|j|d|S(NR0(R^(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_BINARY_FLOAT)scKst|d<|j|d|S(Nt no_precisionR(R&R^(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRR,s cKs|j|d|S(NR(R^(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_NUMBER2scKs|dkr|j}n|dkr9t|dd}n|sK|dkrO|S|dkrwd}|i|d6|d6Sd}|i|d6|d6|d6SdS(NRs%(name)s(%(precision)s)tnameRs"%(name)s(%(precision)s, %(scale)s)(R Rtgetattr(R$RORdRRRbRPtn((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR^5s    cKs|j||S(N(RW(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_stringGscKs|j|ddS(NRYt2(t_visit_varchar(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRWJscKs|j|ddS(NtNRh(Ri(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRVMscKs|j|ddS(NRY(Ri(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_VARCHARRscCs{|jsdi|d6|d6S| rQ|jjrQd}|i|jd6|d6Sd}|i|jd6|d6|d6SdS(Ns%(n)sVARCHAR%(two)sttwoRfsVARCHAR%(two)s(%(length)s CHAR)tlengths%(n)sVARCHAR%(two)s(%(length)s)(RmRTt_supports_char_length(R$RORftnumtvarchar((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRiUs cKs|j||S(N(t visit_CLOB(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_text_scKs0|jjr|j||S|j||SdS(N(RTRUt visit_NCLOBRq(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_unicode_textbs cKs|j||S(N(t visit_BLOB(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_large_binaryhscKs|j|dd|S(NRi(Rc(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_big_integerkscKs|j||S(N(tvisit_SMALLINT(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_booleannscKs#|jrdi|jd6SdSdS(NsRAW(%(length)s)RmR(Rm(R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_RAWqs cKsdS(NRH((R$RORP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_ROWIDwsN(RRRQRSRXRZR[R]R_R`RaRRRcR RGR^RgRWRVtvisit_NVARCHARRkRiRrRtRvRwRyRzR{(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRMs2                    tOracleCompilercBs2eZdZejejjidej j 6ZdZ dZ dZ dZdZdZdZd Zd Zd Zd Zd ZdZddZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'RS(sOracle compiler modifies the lexical structure of Select statements to work under non-ANSI configured Oracle databases, if the use_ansi flag is False. tMINUScOs&i|_tt|j||dS(N(t_OracleCompiler__wheresR"R}R#(R$targstkwargs((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR#s cKs,d|j|j||j|j|fS(Ns mod(%s, %s)(tprocesstlefttright(R$tbinarytoperatorRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_mod_binaryscKsdS(NtCURRENT_TIMESTAMP((R$tfnRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_now_funcscKsd|j||S(NtLENGTH(tfunction_argspec(R$RRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_char_length_funcscKs&d|j|j|j|jfS(NsCONTAINS (%s, %s)(RRR(R$RRRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_match_op_binaryscKsdS(Nt1((R$texprRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_truescKsdS(Nt0((R$RRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_falsescCsdS(NtWITH((R$t recursive((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_cte_preamblescCsdjd|jDS(Nt css|]\}}d|VqdS(s /*+ %s */N((t.0ttablettext((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pys s(tjointitems(R$tbyfroms((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_select_hint_textscKsHt|jdks*|jjtkr@tjj|||SdSdS(NiRY(tlentclausesRdtuppert NO_ARG_FNSRt SQLCompilerR(R$RRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRs*cKs>tt|j||}|jdtr:d|}n|S(Ntasfroms TABLE (%s)(R"R}tvisit_functiontgetRG(R$tfuncRPR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRs cKs)tt|j||}|d}|S(Ns .COLUMN_VALUE(R"R}tvisit_table_valued_column(R$telementRPR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRs  cCsdS(sCalled when a ``SELECT`` statement has no froms, and no ``FROM`` clause is to be appended. The Oracle compiler tacks a "FROM DUAL" to the statement. s FROM DUAL((R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt default_fromscKs|jjr(tjj||d||S|rM|jj|j|jfnt |dss NOWAITs SKIP LOCKED(t is_subqueryRRRtnowaitt skip_locked(R$RRPttmp((RPR$sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytfor_update_clauses   '    cKs&d|j|j|j|jfS(NsDECODE(%s, %s, 0, 1) = 1(RRR(R$RRRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_is_distinct_from_binaryscKs&d|j|j|j|jfS(NsDECODE(%s, %s, 0, 1) = 0(RRR(R$RRRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt!visit_is_not_distinct_from_binaryscKsu|j|j|}|j|j|}|jd}|dkrQd||fSd|||j|tjfSdS(NtflagssREGEXP_LIKE(%s, %s)sREGEXP_LIKE(%s, %s, %s)(RRRt modifiersR trender_literal_valueR t STRINGTYPE(R$RRRPtstringtpatternR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_regexp_match_op_binarys  cKsd|j|||S(NsNOT %s(R (R$RRRP((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt visit_not_regexp_match_op_binarys cKsu|j|j|}|j|j|}|jd}|dkrQd||fSd|||j|tjfSdS(NRsREGEXP_REPLACE(%s, %s)sREGEXP_REPLACE(%s, %s, %s)(RRRRR RR R(R$RRRPRtpattern_replaceR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_regexp_replace_op_binary s  N((RRR8Rt update_copyRRtcompound_keywordsR tCompoundSelecttEXCEPTR#RRRRRRRRRRRRR RRRRRRRRRRRRR R!R#(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR}{s@               *    5      tOracleDDLCompilercBsGeZdZdZdZdZdZdZdZRS(cCsLd}|jdk r)|d|j7}n|jdk rHtjdn|S(NRYs ON DELETE %ssOracle does not contain native UPDATE CASCADE functionality - onupdates will not be rendered for foreign keys. Consider using deferrable=True, initially='deferred' or triggers.(tondeleteR tonupdateRR(R$t constraintR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytdefine_constraint_cascadess cCsd|jj|jS(NsCOMMENT ON TABLE %s IS ''(Rt format_tableR(R$tdrop((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_drop_table_comment0s cs|j}j|j}d}|jr;|d7}n|jddrY|d7}n|dj|dt|j|jdtd j fd |j Df7}|jdd t k r|jdd tkr|d 7}q|d |jdd 7}n|S(NsCREATE sUNIQUE toracletbitmapsBITMAP sINDEX %s ON %s (%s)tinclude_schemat use_schemas, c3s-|]#}jj|dtdtVqdS(t include_tablet literal_bindsN(t sql_compilerRRGR&(RR(R$(sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pys Bstcompresss COMPRESSs COMPRESS %d( Rt_verify_index_tableRtuniquetdialect_optionst_prepared_index_nameR&R-RRt expressionsRG(R$tcreatetindexRR((R$sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_create_index5s(        cCsg}|jd}|drM|djddj}|jd|n|dr|dtkrw|jdq|jd|dnd j|S( NR0t on_committ_Rs ON COMMIT %sR7s COMPRESSs COMPRESS FOR %sRY(R:treplaceRRR&R(R$Rt table_optstoptston_commit_options((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytpost_create_tableQs   cCstt|j|}|jdd}|jdd}|jdd}|jdk ry||jrodnd7}n|jS( Ns NO MINVALUEt NOMINVALUEs NO MAXVALUEt NOMAXVALUEsNO CYCLEtNOCYCLEs ORDERs NOORDER(R"R(tget_identity_optionsRBtorderR tstrip(R$tidentity_optionsR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRJas cCsfd|jj|jdtdt}|jtkrFtjdn|jtkrb|d7}n|S(NsGENERATED ALWAYS AS (%s)R4R5szOracle computed columns do not support 'stored' persistence; set the 'persisted' flag to None or False for Oracle support.s VIRTUAL(R6RtsqltextRGR&t persistedRt CompileError(R$t generatedR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_computed_columnls   cKs|jdkrd}n|jr'dnd}d|}|jrM|d7}n|d7}|j|}|r}|d|7}n|S(NRYtALWAYSs BY DEFAULTs GENERATED %ss ON NULLs AS IDENTITYs (%s)(talwaysR ton_nullRJ(R$tidentityRPtkindRtoptions((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytvisit_identity_columnys     ( RRR,R/R?RFRJRRRY(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR(s     tOracleIdentifierPreparercBsReZdeDZdeddDjddgZdZdZRS(cCsh|]}|jqS((tlower(Rtx((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pys s cCsh|]}t|qS((tstr(Rtdig((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pys s ii RAt$cCsH|j}||jkpG|d|jkpG|jjtj| S(s5Return True if the given identifier requires quoting.i(R[treserved_wordstillegal_initial_characterstlegal_characterstmatchRt text_type(R$RDtlc_value((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_bindparam_requires_quotess cCs+|jjd}tt|j||S(NRA(tidenttlstripR"RZtformat_savepoint(R$t savepointRd((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRis( RRtRESERVED_WORDSR`trangetunionRaRfRi(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRZs  tOracleExecutionContextcBseZdZRS(cCs$|jd|jj|d|S(NsSELECT s.nextval FROM DUAL(t_execute_scalartidentifier_preparerR(R$RRO((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt fire_sequences(RRRq(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRnst OracleDialectcBsXeZdZeZeZeZeZdZ eZ eZ eZ eZ eZdZeZeZeZeZeZeZeZeZeZeZeZeZe Z!d3Z"eZ#e$j%ied6d4d6ed6fe$j'ied6ed6fgZ(e)j*dd5eed4ed6d Z+dZ,dZ-e.dZ/e.dZ0e.dZ1e.dZ2e.dZ3dZ4dZ5dZ6ddgZ7dZ8dZ9dZ:d4dZ;d4dZ<dZ=d4d4d4d Z>e?j@d4ed!d"ZAe?j@d#ZBe?j@d4d$ZCe?j@d%ZDe?j@d4d&ZEe?j@d4d'ZFe?j@d4d(ZGe?j@d4d)ZHd*ZIe?j@d4ed!d+ZJe?j@d4ed!d,ZKe?j@d4d!d-ZLe?j@d4d.ZMe?j@d4d/ZNe?j@d4d0ZOe?j@d4ed!d1ZPe?j@d4ed2ZQRS(7R0itnamedtoracle_resolve_synonymstresolve_synonymsR@R7R1tuse_binds_for_limitss1.4sThe ``use_binds_for_limits`` Oracle dialect parameter is deprecated. The dialect now renders LIMIT /OFFSET integers inline in all cases using a post-compilation hook, so that the value is still represented by a 'bound parameter' on the Core Expression side.tSYSTEMtSYSAUXcKs;tjj||||_||_||_||_dS(N(RtDefaultDialectR#RURRtexclude_tablespaces(R$RRRvtuse_nchar_for_unicodeRzR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR#s    cCstt|j||jjd|jdk|_|jrq|jj |_|jj t j t |_n|jdk|_dS(Ntimplicit_returningi i (i (i (R"Rrt initializet__dict__Rtserver_version_infoR|t _is_oracle_8tcolspecstcopytpopR R?RGRtsupports_identity_columns(R$t connection((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR}s   cCs|jdkr|jSy|jdj}Wntjk rKd}nX|ry!td|jdDSWq|jSXn|jSdS(Ni is7SELECT value FROM v$parameter WHERE name = 'compatible'css|]}t|VqdS(N(tint(RR\((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pys st.(i i(Rtexec_driver_sqltscalarRt DBAPIErrorR ttupletsplit(R$RR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt)_get_effective_compat_server_version_infos ! cCs|jo|jdkS(Ni (i (R(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRscCs|jo|jdkS(Ni i(i i(R(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_supports_table_compressionscCs|jo|jdkS(Ni (i (R(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_supports_table_compress_forscCs|j S(N(R(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRnscCs|jo|jdkS(Ni(i(R(R$((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR"scCsdS(N((R$RRd((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytdo_release_savepoint(scCs!|j|dkrdSdSdS(Ni ii(i i(RR (R$R((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_check_max_identifier_length,s   cCs@tjtjdtjdg}tt|j||S(Ns'test nvarchar2 returns'i<(R tcastRR RR"Rrt_check_unicode_returns(R$Rtadditional_tests((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR6s  sREAD COMMITTEDt SERIALIZABLEcCstddS(Ns implemented by cx_Oracle dialect(tNotImplementedError(R$R((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_isolation_levelCscCs3y|j|SWntk r'ndSXdS(NsREAD COMMITTED(RR(R$t dbapi_conn((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_default_isolation_levelFs  cCstddS(Ns implemented by cx_Oracle dialect(R(R$Rtlevel((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytset_isolation_levelNscCsk|j||s|j}n|jtjdtd|j|d|j|}|jdk S(NsSELECT table_name FROM all_tables WHERE table_name = CAST(:name AS VARCHAR2(128)) AND owner = CAST(:schema_name AS VARCHAR2(128))Rdt schema_name( t_ensure_has_table_connectiontdefault_schema_nametexecuteRRtdicttdenormalize_nametfirstR (R$Rt table_nameRtcursor((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt has_tableQs  cCs^|s|j}n|jtjdtd|j|d|j|}|jdk S(NseSELECT sequence_name FROM all_sequences WHERE sequence_name = :name AND sequence_owner = :schema_nameRdR(RRRRRRRR (R$Rt sequence_nameRR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt has_sequenceds cCs|j|jdjS(Ns;select sys_context( 'userenv', 'current_schema' ) from dual(tnormalize_nameRR(R$R((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_get_default_schema_nametsc Cshd}g}i}|r2|jd||d|dj|j |jn|j}q<W| S(NRRs9SELECT a.index_name, a.column_name, b.index_type, b.uniqueness, b.compression, b.prefix_length FROM ALL_IND_COLUMNS%(dblink)s a, ALL_INDEXES%(dblink)s b WHERE a.index_name = b.index_name AND a.table_owner = b.table_owner AND a.table_name = b.table_name AND a.table_name = CAST(:table_name AS VARCHAR(128))RsAND a.table_owner = :schema s(ORDER BY a.index_name, a.column_positionRRut NONUNIQUEtUNIQUERRs SYS_NC\d+\$Rdt column_namesR:R9tBITMAPsFUNCTION-BASED BITMAPt oracle_bitmapR(RsFUNCTION-BASED BITMAP(RRR RRRtget_pk_constraintRRGR&Rtcompilet IGNORECASERt index_nameRt uniquenesst index_typeRt prefix_lengthRct column_name(R$RRRRuRRPRRtindexesRRRtrptlast_index_namet pk_constraintR Rtoracle_sys_colR>trsettindex_name_normalized((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt get_indexes9sh          c Ks|i|d6}d}|dk r6||d<|d7}n|d7}|i|d6}|jtj||}|j} | S(NRsSELECT ac.constraint_name, ac.constraint_type, loc.column_name AS local_column, rem.table_name AS remote_table, rem.column_name AS remote_column, rem.owner AS remote_owner, loc.position as loc_pos, rem.position as rem_pos, ac.search_condition, ac.delete_rule FROM all_constraints%(dblink)s ac, all_cons_columns%(dblink)s loc, all_cons_columns%(dblink)s rem WHERE ac.table_name = CAST(:table_name AS VARCHAR2(128)) AND ac.constraint_type IN ('R','P', 'U', 'C')Rs- AND ac.owner = CAST(:owner AS VARCHAR2(128))s AND ac.owner = loc.owner AND ac.constraint_name = loc.constraint_name AND ac.r_owner = rem.owner(+) AND ac.r_constraint_name = rem.constraint_name(+) AND (rem.position IS NULL or loc.position=rem.position) ORDER BY ac.constraint_name, loc.positionR(R RRRtfetchall( R$RRRRRPRRRtconstraint_data((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt_get_constraint_datas     cKs<|jdt}|jdd}|jd}|j|||||d|\}}}}g} d} |j||||d|jd} x| D]} | dd!tg| dd!D]} |j| ^q\}}}}}}|dkr| dkr|j|} n| j|qqWi| d 6| d 6S( NRtRRYRiiitPtconstrained_columnsRd(RRGRR RRRR(R$RRRRPRuRRRtpkeystconstraint_nameRRR\t cons_namet cons_typet local_columnt remote_tablet remote_columnt remote_owner((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRs2 L  cKsp|}|jdt}|jdd}|jd}|j|||||d|\}}}} |j||||d|jd} d} tj| } x| D]} | dd!tg| dd!D]}|j|^q\}}}}}}|j|}|d kr|dkrCtj d i|d6qn| |}||d <|d |d }}|ds?|r|j |d|j |d|j |\}}}}|r|j|}|j|}qn||d<|dk s |j ||kr||dz RYcSs|dS(Ni((R\((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR5{ RYcSsh|]}|dqS(Rd((Rtix((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pys ~ s RiiiRdRtduplicates_index( RRGRRtfilterRRRR (R$RRRRPRuRRRRt unique_keyst uniques_groupt index_namesRR\Rdtcols((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_unique_constraintsa s.c Ks|jd}|j|||||d|\}}}}i|d6} d} |dk rr| d7} || dRRuRRPRRRRR((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_view_definition s&     ! c Ks|jdt}|jdd}|jd}|j|||||d|\}}}} |j||||d|jd} td| } g| D]H} |stjd| d ri|j| dd 6| dd 6^qS( NRtRRYRcSs|ddkS(NitC((R\((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR5 RYs..+?. IS NOT NULL$iiRdRN(RRGRRR8RRcR( R$RRRt include_allRPRuRRRRtcheck_constraintstcons((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pytget_check_constraints s( (RtN(s1.4sThe ``use_binds_for_limits`` Oracle dialect parameter is deprecated. The dialect now renders LIMIT /OFFSET integers inline in all cases using a post-compilation hook, so that the value is still represented by a 'bound parameter' on the Core Expression side.(RwRx(RRRRdR&tsupports_statement_cachetsupports_alterRGtsupports_unicode_statementstsupports_unicode_bindstmax_identifier_lengthtsupports_simple_order_by_labeltcte_follows_inserttsupports_sequencestsequences_optionaltpostfetch_lastrowidtdefault_paramstyleRRtrequires_name_normalizetsupports_commentstsupports_default_valuestsupports_default_metavaluetsupports_empty_insertRR}tstatement_compilerR(t ddl_compilerRMt type_compilerRZRRntexecution_ctx_clstreflection_optionsRURtTableR tIndextconstruct_argumentsRtdeprecated_paramsR#R}RR-RRRRnRRRRt_isolation_lookupRRRRRRRRRRRRRRRRRRRRRRR3R=RBRG(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyRrs              >! 3 _*&n-RcBseZdZdZRS(touter_join_columncCs ||_dS(N(R(R$R((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR# s(RRRR#(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyR s(MR8t itertoolsRRRYRRRRRRtengineRRRR R RR ttypesR R RRRRRRRRtsetRRkRt_BinaryRt OracleRawtTextRRRLR*R+RtFloatR.R/R0t LargeBinaryR1R2R4R3tNativeForEmulatedt_AbstractIntervalR9t TypeEngineRHtBooleanRIR?RRtGenericTypeCompilerRMRR}t DDLCompilerR(tIdentifierPreparerRZtDefaultExecutionContextRnRyRrt ClauseElementR(((sR/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/dialects/oracle/base.pyt*s  *     }k 0