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@sdZddlmZddlmZddlmZddlmZddlmZddlm Z dd lm Z dd lm Z dd l m Z d e fd YZ dejee fdYZdefdYZdefdYZdefdYZdefdYZdefdYZdefdYZde fdYZdefdYZd efd!YZd"efd#YZd$efd%YZd&efd'YZd(efd)YZd*efd+YZd,efd-YZd.efd/YZd0efd1YZ d2efd3YZ!d4efd5YZ"d6e"fd7YZ#d8e"fd9YZ$d<d<d:Z&d<d<e'd;Z(d<S(=sq Provides the hierarchy of DDL-defining schema items as well as routines to invoke them for a create/drop call. i(troles(t_bind_or_error(t _generative(t Executable(t SchemaVisitor(t ClauseElementi(texc(tutil(t topologicalt _DDLCompilescBs eZeZdZdZRS(cKs|j|||S(sNReturn a compiler appropriate for this ClauseElement, given a Dialect.(t ddl_compiler(tselftdialecttkw((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt _compilerscOs tdS(N(tNotImplementedError(R targR ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_compile_w_cache"s(t__name__t __module__tFalset_hierarchy_supports_cachingRR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR s t DDLElementcBseZdZejjied6ZdZdZ dZ dZ dZ e jddddddZedZeddddZd Zd Zd Zd ZeeeZd ZRS(sBase class for DDL expression constructs. This class is the base for the general purpose :class:`.DDL` class, as well as the various create/drop clause constructs such as :class:`.CreateTable`, :class:`.DropTable`, :class:`.AddConstraint`, etc. :class:`.DDLElement` integrates closely with SQLAlchemy events, introduced in :ref:`event_toplevel`. An instance of one is itself an event receiving callable:: event.listen( users, 'after_create', AddConstraint(constraint).execute_if(dialect='postgresql') ) .. seealso:: :class:`.DDL` :class:`.DDLEvents` :ref:`event_toplevel` :ref:`schema_ddl_sequences` t autocommitcCs|j||||S(N(t _execute_ddl(R t connectiont multiparamstparamstexecution_options((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_execute_on_connectionMss:meth:`.DDLElement.execute`t alternativesAll statement execution in SQLAlchemy 2.0 is performed by the :meth:`_engine.Connection.execute` method of :class:`_engine.Connection`, or in the ORM by the :meth:`.Session.execute` method of :class:`.Session`.cCsZ|dkrt|}n|j||rC|j|j|S|jjjddS(sExecute this DDL immediately. Executes the DDL statement in isolation using the supplied :class:`.Connectable` or :class:`.Connectable` assigned to the ``.bind`` property, if not supplied. If the DDL has a conditional ``on`` criteria, it will be invoked with None as the event. :param bind: Optional, an ``Engine`` or ``Connection``. If not supplied, a valid :class:`.Connectable` must be present in the ``.bind`` property. :param target: Optional, defaults to None. The target :class:`_schema.SchemaItem` for the execute call. This is equivalent to passing the :class:`_schema.SchemaItem` to the :meth:`.DDLElement.against` method and then invoking :meth:`_schema.DDLElement.execute` upon the resulting :class:`_schema.DDLElement` object. See :meth:`.DDLElement.against` for further detail. s(DDL execution skipped, criteria not met.N(tNoneRt_should_executetexecutetagainsttenginetloggertinfo(R tbindttarget((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR!Ts cCs ||_dS(sReturn a copy of this :class:`_schema.DDLElement` which will include the given target. This essentially applies the given item to the ``.target`` attribute of the returned :class:`_schema.DDLElement` object. This target is then usable by event handlers and compilation routines in order to provide services such as tokenization of a DDL string in terms of a particular :class:`_schema.Table`. When a :class:`_schema.DDLElement` object is established as an event handler for the :meth:`_events.DDLEvents.before_create` or :meth:`_events.DDLEvents.after_create` events, and the event then occurs for a given target such as a :class:`_schema.Constraint` or :class:`_schema.Table`, that target is established with a copy of the :class:`_schema.DDLElement` object using this method, which then proceeds to the :meth:`_schema.DDLElement.execute` method in order to invoke the actual DDL instruction. :param target: a :class:`_schema.SchemaItem` that will be the subject of a DDL operation. :return: a copy of this :class:`_schema.DDLElement` with the ``.target`` attribute assigned to the given :class:`_schema.SchemaItem`. .. seealso:: :class:`_schema.DDL` - uses tokenization against the "target" when processing the DDL string. N(R'(R R'((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR"|s"cCs||_||_||_dS(s7Return a callable that will execute this :class:`_ddl.DDLElement` conditionally within an event handler. Used to provide a wrapper for event listening:: event.listen( metadata, 'before_create', DDL("my_ddl").execute_if(dialect='postgresql') ) :param dialect: May be a string or tuple of strings. If a string, it will be compared to the name of the executing database dialect:: DDL('something').execute_if(dialect='postgresql') If a tuple, specifies multiple dialect names:: DDL('something').execute_if(dialect=('postgresql', 'mysql')) :param callable\_: A callable, which will be invoked with four positional arguments as well as optional keyword arguments: :ddl: This DDL element. :target: The :class:`_schema.Table` or :class:`_schema.MetaData` object which is the target of this event. May be None if the DDL is executed explicitly. :bind: The :class:`_engine.Connection` being used for DDL execution :tables: Optional keyword argument - a list of Table objects which are to be created/ dropped within a MetaData.create_all() or drop_all() method call. :state: Optional keyword argument - will be the ``state`` argument passed to this function. :checkfirst: Keyword argument, will be True if the 'checkfirst' flag was set during the call to ``create()``, ``create_all()``, ``drop()``, ``drop_all()``. If the callable returns a True value, the DDL statement will be executed. :param state: any value which will be passed to the callable\_ as the ``state`` keyword argument. .. seealso:: :class:`.DDLEvents` :ref:`event_toplevel` N(R t callable_tstate(R R R(R)((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt execute_ifsB  cKst|jtjr1|j|jjkrhtSn7t|jttt frh|jj|jkrhtSn|j dk r|j |||d|j | rtSt S(NR)(t isinstanceR Rt string_typesR#tnameRttupletlisttsetR(RR)tTrue(R R'R&R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR scKs/|j|||r+|j|j|SdS(s"Execute the DDL as a ddl_listener.N(R R!R"(R R'R&R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt__call__scCs|jr|jSdS(N(t_bind(R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR&s cCs ||_dS(N(R3(R R&((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt _set_bindscCs+|jj|j}|jj|_|S(N(t __class__t__new__t__dict__tcopy(R ts((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt _generatesN(RRt__doc__Rt_execution_optionstunionR1RR'tonR R(RRt deprecated_20R!RR"R*R R2R&R4tpropertyR:(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR&s*   $E    tDDLcBs>eZdZdZejdddddZdZRS( sAA literal DDL statement. Specifies literal SQL DDL to be executed by the database. DDL objects function as DDL event listeners, and can be subscribed to those events listed in :class:`.DDLEvents`, using either :class:`_schema.Table` or :class:`_schema.MetaData` objects as targets. Basic templating support allows a single DDL instance to handle repetitive tasks for multiple tables. Examples:: from sqlalchemy import event, DDL tbl = Table('users', metadata, Column('uid', Integer)) event.listen(tbl, 'before_create', DDL('DROP TRIGGER users_trigger')) spow = DDL('ALTER TABLE %(table)s SET secretpowers TRUE') event.listen(tbl, 'after_create', spow.execute_if(dialect='somedb')) drop_spow = DDL('ALTER TABLE users SET secretpowers FALSE') connection.execute(drop_spow) When operating on Table events, the following ``statement`` string substitutions are available:: %(table)s - the Table name, with any required quoting applied %(schema)s - the schema name, with any required quoting applied %(fullname)s - the Table name including schema, quoted if needed The DDL's "context", if any, will be combined with the standard substitutions noted above. Keys present in the context will override the standard substitutions. tddlR&s2.0s[The :paramref:`_ddl.DDL.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.cCsMt|tjs(tjd|n||_|p:i|_||_dS(sCreate a DDL statement. :param statement: A string or unicode string to be executed. Statements will be processed with Python's string formatting operator using a fixed set of string substitutions, as well as additional substitutions provided by the optional :paramref:`.DDL.context` parameter. A literal '%' in a statement must be escaped as '%%'. SQL bind parameters are not available in DDL statements. :param context: Optional dictionary, defaults to None. These values will be available for use in string substitutions on the DDL statement. :param bind: Optional. A :class:`.Connectable`, used by default when ``execute()`` is invoked without a bind argument. .. seealso:: :class:`.DDLEvents` :ref:`event_toplevel` s4Expected a string or unicode SQL statement, got '%r'N(R+RR,Rt ArgumentErrort statementtcontextR3(R RDRER&((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt__init__/s&  c Csndt|jt|djt|jggdD].}t||r4d|t||f^q4fS(Ns <%s@%s; %s>s, R>REs%s=%r(R>RE(ttypeRtidtjointreprRDtgetattr(R tkey((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt__repr__`s   (s2.0s[The :paramref:`_ddl.DDL.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.N( RRR;t__visit_name__Rtdeprecated_paramsRRFRM(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRA s" *t_CreateDropBasecBsMeZdZejdddeeddZedZ dZ RS( sBase class for DDL constructs that represent CREATE and DROP or equivalents. The common theme of _CreateDropBase is a single ``element`` attribute which refers to the element to be created or dropped. R&s2.0sbThe :paramref:`_ddl.DDLElement.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.cCsC||_|r||_n|r-||_n||_||_dS(N(telementR&t if_existst if_not_exists(R RQR&RRRSt _legacy_bind((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFys    cCs |jjS(N(RQtcreate_drop_stringify_dialect(R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pytstringify_dialectscCstS(sAllow disable of _create_rule using a callable. Pass to _create_rule using util.portable_instancemethod(self._create_rule_disable) to retain serializability. (R(R tcompiler((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_create_rule_disables(s2.0sbThe :paramref:`_ddl.DDLElement.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.N( RRR;RRORRRFR@RVRX(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRPos  t CreateSchemacBs&eZdZdZdZddZRS(scRepresent a CREATE SCHEMA statement. The argument here is the string name of the schema. t create_schematdefaultcKs&||_tt|j||dS(s.Create a new :class:`.CreateSchema` construct.N(tquotetsuperRYRF(R R-R\R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs N(RRR;RNRVRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRYst DropSchemacBs)eZdZdZdZdedZRS(saRepresent a DROP SCHEMA statement. The argument here is the string name of the schema. t drop_schemaR[cKs/||_||_tt|j||dS(s,Create a new :class:`.DropSchema` construct.N(R\tcascadeR]R^RF(R R-R\R`R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs  N(RRR;RNRVRRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR^st CreateTablecBs8eZdZdZejddddedZRS(s#Represent a CREATE TABLE statement.t create_tableR&s2.0scThe :paramref:`_ddl.CreateTable.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.cCsTtt|j|d|d|g|jD]}t|^q,|_||_dS(sCreate a :class:`.CreateTable` construct. :param element: a :class:`_schema.Table` that's the subject of the CREATE :param on: See the description for 'on' in :class:`.DDL`. :param bind: See the description for 'bind' in :class:`.DDL`. :param include_foreign_key_constraints: optional sequence of :class:`_schema.ForeignKeyConstraint` objects that will be included inline within the CREATE construct; if omitted, all foreign key constraints that do not specify use_alter=True are included. .. versionadded:: 1.0.0 :param if_not_exists: if True, an IF NOT EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 RTRSN(R]RaRFtcolumnst CreateColumntinclude_foreign_key_constraints(R RQR&ReRStcolumn((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs!%(s2.0scThe :paramref:`_ddl.CreateTable.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.N( RRR;RNRRORRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRas t _DropViewcBseZdZdZRS(sSemi-public 'DROP VIEW' construct. Used by the test suite for dialect-agnostic drops of views. This object will eventually be part of a public "view" API. t drop_view(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRgsRdcBseZdZdZdZRS(sRepresent a :class:`_schema.Column` as rendered in a CREATE TABLE statement, via the :class:`.CreateTable` construct. This is provided to support custom column DDL within the generation of CREATE TABLE statements, by using the compiler extension documented in :ref:`sqlalchemy.ext.compiler_toplevel` to extend :class:`.CreateColumn`. Typical integration is to examine the incoming :class:`_schema.Column` object, and to redirect compilation if a particular flag or condition is found:: from sqlalchemy import schema from sqlalchemy.ext.compiler import compiles @compiles(schema.CreateColumn) def compile(element, compiler, **kw): column = element.element if "special" not in column.info: return compiler.visit_create_column(element, **kw) text = "%s SPECIAL DIRECTIVE %s" % ( column.name, compiler.type_compiler.process(column.type) ) default = compiler.get_column_default_string(column) if default is not None: text += " DEFAULT " + default if not column.nullable: text += " NOT NULL" if column.constraints: text += " ".join( compiler.process(const) for const in column.constraints) return text The above construct can be applied to a :class:`_schema.Table` as follows:: from sqlalchemy import Table, Metadata, Column, Integer, String from sqlalchemy import schema metadata = MetaData() table = Table('mytable', MetaData(), Column('x', Integer, info={"special":True}, primary_key=True), Column('y', String(50)), Column('z', String(20), info={"special":True}) ) metadata.create_all(conn) Above, the directives we've added to the :attr:`_schema.Column.info` collection will be detected by our custom compilation scheme:: CREATE TABLE mytable ( x SPECIAL DIRECTIVE INTEGER NOT NULL, y VARCHAR(50), z SPECIAL DIRECTIVE VARCHAR(20), PRIMARY KEY (x) ) The :class:`.CreateColumn` construct can also be used to skip certain columns when producing a ``CREATE TABLE``. This is accomplished by creating a compilation rule that conditionally returns ``None``. This is essentially how to produce the same effect as using the ``system=True`` argument on :class:`_schema.Column`, which marks a column as an implicitly-present "system" column. For example, suppose we wish to produce a :class:`_schema.Table` which skips rendering of the PostgreSQL ``xmin`` column against the PostgreSQL backend, but on other backends does render it, in anticipation of a triggered rule. A conditional compilation rule could skip this name only on PostgreSQL:: from sqlalchemy.schema import CreateColumn @compiles(CreateColumn, "postgresql") def skip_xmin(element, compiler, **kw): if element.element.name == 'xmin': return None else: return compiler.visit_create_column(element, **kw) my_table = Table('mytable', metadata, Column('id', Integer, primary_key=True), Column('xmin', Integer) ) Above, a :class:`.CreateTable` construct will generate a ``CREATE TABLE`` which only includes the ``id`` column in the string; the ``xmin`` column will be omitted, but only against the PostgreSQL backend. t create_columncCs ||_dS(N(RQ(R RQ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFfs(RRR;RNRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRdset DropTablecBs5eZdZdZejdddedZRS(s!Represent a DROP TABLE statement.t drop_tableR&s2.0saThe :paramref:`_ddl.DropTable.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.cCs&tt|j|d|d|dS(sCreate a :class:`.DropTable` construct. :param element: a :class:`_schema.Table` that's the subject of the DROP. :param on: See the description for 'on' in :class:`.DDL`. :param bind: See the description for 'bind' in :class:`.DDL`. :param if_exists: if True, an IF EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 RTRRN(R]RjRF(R RQR&RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFos(s2.0saThe :paramref:`_ddl.DropTable.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.N( RRR;RNRRORRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRjjs  tCreateSequencecBseZdZdZRS(s&Represent a CREATE SEQUENCE statement.tcreate_sequence(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRlst DropSequencecBseZdZdZRS(s$Represent a DROP SEQUENCE statement.t drop_sequence(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRnst CreateIndexcBs5eZdZdZejdddedZRS(s#Represent a CREATE INDEX statement.t create_indexR&s2.0scThe :paramref:`_ddl.CreateIndex.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.cCs&tt|j|d|d|dS(sCreate a :class:`.Createindex` construct. :param element: a :class:`_schema.Index` that's the subject of the CREATE. :param on: See the description for 'on' in :class:`.DDL`. :param bind: See the description for 'bind' in :class:`.DDL`. :param if_not_exists: if True, an IF NOT EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 RTRSN(R]RpRF(R RQR&RS((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs(s2.0scThe :paramref:`_ddl.CreateIndex.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.N( RRR;RNRRORRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRps  t DropIndexcBs5eZdZdZejdddedZRS(s!Represent a DROP INDEX statement.t drop_indexR&s2.0saThe :paramref:`_ddl.DropIndex.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.cCs&tt|j|d|d|dS(sCreate a :class:`.DropIndex` construct. :param element: a :class:`_schema.Index` that's the subject of the DROP. :param on: See the description for 'on' in :class:`.DDL`. :param bind: See the description for 'bind' in :class:`.DDL`. :param if_exists: if True, an IF EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2 RTRRN(R]RrRF(R RQR&RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs(s2.0saThe :paramref:`_ddl.DropIndex.bind` argument is deprecated and will be removed in SQLAlchemy 2.0.N( RRR;RNRRORRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRrs  t AddConstraintcBseZdZdZdZRS(s2Represent an ALTER TABLE ADD CONSTRAINT statement.tadd_constraintcOs5tt|j|||tj|j|_dS(N(R]RtRFRtportable_instancemethodRXt _create_rule(R RQtargsR ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs(RRR;RNRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRtstDropConstraintcBs eZdZdZedZRS(s3Represent an ALTER TABLE DROP CONSTRAINT statement.tdrop_constraintcKs;||_tt|j||tj|j|_dS(N(R`R]RyRFRRvRXRw(R RQR`R ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs (RRR;RNRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRystSetTableCommentcBseZdZdZRS(s*Represent a COMMENT ON TABLE IS statement.tset_table_comment(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR{stDropTableCommentcBseZdZdZRS(sfRepresent a COMMENT ON TABLE '' statement. Note this varies a lot across database backends. tdrop_table_comment(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR}stSetColumnCommentcBseZdZdZRS(s+Represent a COMMENT ON COLUMN IS statement.tset_column_comment(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRstDropColumnCommentcBseZdZdZRS(s0Represent a COMMENT ON COLUMN IS NULL statement.tdrop_column_comment(RRR;RN(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRstDDLBasecBseZdZRS(cCs ||_dS(N(R(R R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRF s(RRRF(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRstSchemaGeneratorcBsneZed dZdZdZdZdZed edZ dZ edZ edZ RS( cKsMtt|j||||_||_|j|_||_i|_dS(N( R]RRFt checkfirstttablestidentifier_preparertpreparerR tmemo(R R RRRtkwargs((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs     cCsh|jj|j|jj|}|r>|jj|n|j pg|jj|j|jd| S(Ntschema(R tvalidate_identifierR-Rtschema_for_objectRt has_table(R ttableteffective_schema((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_can_create_tables cCsa|jj|j}|r.|jj|n|j p`|jj|j|jj|jd| S(NR(RRRR RRt has_indexR-(R tindexR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_can_create_index!s  cCs_|jj|}|jjo^|jj s5|j o^|j p^|jj|j|jd| S(NR( RRR tsupports_sequencestsequences_optionaltoptionalRt has_sequenceR-(R tsequenceR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_can_create_sequence,s    c Cs|jdk r|j}nt|jj}tg|D]}|j|r:|^q:}g|jjD]*}|jdkrn|j|rn|^qn}g|D]\}}|dk r|^q}|j j ||j d|d|j d|x!|D]} |j | dtqWx`|D]X\} } | dk rY|j | dtd| dtqx| D]} |j | q`WqW|j j||j d|d|j d|dS(NRRt _ddl_runnert create_okRet_is_metadata_operation(RRR/tvaluestsort_tables_and_constraintsRt _sequencesRfRtdispatcht before_createRRttraverse_singleR1t after_create( R tmetadataRttt collectionR9tseq_colltfkstevent_collectiontseqRtfkcstfkc((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pytvisit_metadata9s@ +*+          c Cs| r|j| rdS|jj||jd|jd|d|x3|jD](}|jdk rP|j|jqPqPW|j j sd}n|jj t |d|t |drx'|jD]}|j|dtqWn|j jrf|j j rf|jdk r'|jj t|nx<|jD].}|jdk r1|jj t|q1q1Wn|jj||jd|jd|d|dS(NRRRRetindexesR(RRRRRRcR[RRR tsupports_alterR!RathasattrRR1tsupports_commentstinline_commentstcommentR{RR(R RRReRRfR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt visit_tableis@           cCs*|jjsdS|jjt|dS(N(R RRR!Rt(R t constraint((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pytvisit_foreign_key_constraints cCs5| r|j| rdS|jjt|dS(N(RRR!Rl(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pytvisit_sequencescCs5| r|j| rdS|jjt|dS(N(RRR!Rp(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt visit_indexsN( RRRRRFRRRRRRRR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR s 3 3  t SchemaDroppercBsneZed dZdZdZdZdZedZ eed dZ dZ edZ RS( cKsMtt|j||||_||_|j|_||_i|_dS(N( R]RRFRRRRR R(R R RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRFs     c sjdk rj}nt|jj}ySg|D]}j|r:|^q:}ttt|dfd}Wntjk rc}j j st j ddj tg|jD]}|j^qg|D]}|df^q}qdt jtj|jd|j|jdddj tg|jD]}|j^q:d|nXg|jjD]}j|rt|^qt}g|D]\}} |dk r|^q} |jj|jd | d jd x`|D]X\} } | dk r,j| d td td|qx| D]} j| q3WqWx*|D]"}j|d |jdkqUW|jj|jd | d jd dS(Nt filter_fncs$jj s|jdkr tSdS(N(R RR-RR(R(R (sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyts s4Can't sort tables for DROP; an unresolvable foreign key dependency exists between tables: %s; and backend does not support ALTER. To restore at least a partial sort, apply use_alter=True to ForeignKey and ForeignKeyConstraint objects involved in the cycle to mark these as known cycles that will be ignored.s, itmsgsCan't sort tables for DROP; an unresolvable foreign key dependency exists between tables: %s. Please ensure that the ForeignKey and ForeignKeyConstraint objects involved in the cycle have names so that they can be dropped using DROP CONSTRAINT.tfrom_RRRtdrop_okRt_ignore_sequences((RRR/Rt_can_drop_tabletreversedRRtCircularDependencyErrorR RRtwarnRItsortedtcyclestfullnametraise_RxtedgesRt_can_drop_sequenceRt before_dropRRRR1Rft after_drop(R RRRtunsorted_tablesRterr2R9RRRRRRR((R sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRsh ( 0"  , +           cCsg|jj|j|jj|}|r>|jj|n|j pf|jj|j|jd|S(NR(R RR-RRRR(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRs cCs`|jj|j}|r.|jj|n|j p_|jj|j|jj|jd|S(NR(RRRR RRRR-(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_can_drop_index#s  cCs^|jj|}|jjo]|jj s5|j o]|j p]|jj|j|jd|S(NR( RRR RRRRRR-(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR.s    cCs5| r|j| rdS|jjt|dS(N(RRR!Rr(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR:sc Cs| r|j| rdS|jj||jd|jd|d||jjt|xB|jD]7}|jdk rf|j|krf|j |jqfqfW|jj ||jd|jd|d|dS(NRRR( RRRRRR!RjRcR[RRR(R RRRRRf((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyR@s&      cCs*|jjsdS|jjt|dS(N(R RRR!Ry(R R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRhs cCs5| r|j| rdS|jjt|dS(N(RRR!Rn(R RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRmsN(( RRRRRFRRRRRRRR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRs ^  # c sedk rfd}nd}gt|d|d|dtD]\}}|dk rC|^qCS(s Sort a collection of :class:`_schema.Table` objects based on dependency. This is a dependency-ordered sort which will emit :class:`_schema.Table` objects such that they will follow their dependent :class:`_schema.Table` objects. Tables are dependent on another based on the presence of :class:`_schema.ForeignKeyConstraint` objects as well as explicit dependencies added by :meth:`_schema.Table.add_is_dependent_on`. .. warning:: The :func:`._schema.sort_tables` function cannot by itself accommodate automatic resolution of dependency cycles between tables, which are usually caused by mutually dependent foreign key constraints. When these cycles are detected, the foreign keys of these tables are omitted from consideration in the sort. A warning is emitted when this condition occurs, which will be an exception raise in a future release. Tables which are not part of the cycle will still be returned in dependency order. To resolve these cycles, the :paramref:`_schema.ForeignKeyConstraint.use_alter` parameter may be applied to those constraints which create a cycle. Alternatively, the :func:`_schema.sort_tables_and_constraints` function will automatically return foreign key constraints in a separate collection when cycles are detected so that they may be applied to a schema separately. .. versionchanged:: 1.3.17 - a warning is emitted when :func:`_schema.sort_tables` cannot perform a proper sort due to cyclical dependencies. This will be an exception in a future release. Additionally, the sort will continue to return other tables not involved in the cycle in dependency order which was not the case previously. :param tables: a sequence of :class:`_schema.Table` objects. :param skip_fn: optional callable which will be passed a :class:`_schema.ForeignKey` object; if it returns True, this constraint will not be considered as a dependency. Note this is **different** from the same parameter in :func:`.sort_tables_and_constraints`, which is instead passed the owning :class:`_schema.ForeignKeyConstraint` object. :param extra_dependencies: a sequence of 2-tuples of tables which will also be considered as dependent on each other. .. seealso:: :func:`.sort_tables_and_constraints` :attr:`_schema.MetaData.sorted_tables` - uses this function to sort cs,x%|jD]}|r tSq WdSdS(N(telementsR1R(Rtfk(tskip_fn(sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt_skip_fns Rtextra_dependenciest_warn_for_cyclesN(RRR1(RRRRRR((RsE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt sort_tablests? cst}t}|dk r.|j|nt}x|D]xjD]}|jtkrv|j|qNn|r||}|tkr|j|qNqn|j} | k rN|j| fqNqNW|jfdjDq>Wy%t t j |j ||} Wn5t jk rY} |rptjddjtd| jDfnx| jD]} | |krz| d| jkrqzngjD]*}|dks||tk r|^q} |j| x<| D]1}|j} | k r|j| fqqWqzqzWt t j |j ||} nXg| D]jj|f^qadt |fgS(sSort a collection of :class:`_schema.Table` / :class:`_schema.ForeignKeyConstraint` objects. This is a dependency-ordered sort which will emit tuples of ``(Table, [ForeignKeyConstraint, ...])`` such that each :class:`_schema.Table` follows its dependent :class:`_schema.Table` objects. Remaining :class:`_schema.ForeignKeyConstraint` objects that are separate due to dependency rules not satisfied by the sort are emitted afterwards as ``(None, [ForeignKeyConstraint ...])``. Tables are dependent on another based on the presence of :class:`_schema.ForeignKeyConstraint` objects, explicit dependencies added by :meth:`_schema.Table.add_is_dependent_on`, as well as dependencies stated here using the :paramref:`~.sort_tables_and_constraints.skip_fn` and/or :paramref:`~.sort_tables_and_constraints.extra_dependencies` parameters. :param tables: a sequence of :class:`_schema.Table` objects. :param filter_fn: optional callable which will be passed a :class:`_schema.ForeignKeyConstraint` object, and returns a value based on whether this constraint should definitely be included or excluded as an inline constraint, or neither. If it returns False, the constraint will definitely be included as a dependency that cannot be subject to ALTER; if True, it will **only** be included as an ALTER result at the end. Returning None means the constraint is included in the table-based result unless it is detected as part of a dependency cycle. :param extra_dependencies: a sequence of 2-tuples of tables which will also be considered as dependent on each other. .. versionadded:: 1.0.0 .. seealso:: :func:`.sort_tables` c3s|]}|fVqdS(N((t.0tparent(R(sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pys ssCannot correctly sort tables; there are unresolvable cycles between tables "%s", which is usually caused by mutually dependent foreign key constraints. Foreign key constraints involving these tables will not be considered; this warning may raise an error in a future release.s, css|]}|jVqdS(N(R(RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pys &siN(R0Rtupdatetforeign_key_constraintst use_alterR1taddtreferred_tablet_extra_dependenciesR/RtsortR=RRRRRIRRRRtdiscardt difference(RRRRtfixed_dependenciestmutable_dependenciestremaining_fkcsRtfilteredt dependent_ontcandidate_sortterrtedget can_remove((RsE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyRsd0             *   *    ! %N()R;tRtbaseRRRRRRRRRR tDDLRoleRRARPRYR^RaRgRdRjRlRnRpRrRtRyR{R}RRRRRRRRR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/ddl.pyt sFf1- m    U