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 @sdZddlmZddlmZddlmZddlmZddlm Z ddlm Z dd lm Z dd lm Z dd lm Z dd lmZdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZdefdYZejdddefdYZ ejdd d!efd"YZ!ejdd#d$efd%YZ"d&ej#eeeeeeefd'YZ$d(e$fd)YZ%d*e%fd+YZ&d,e'fd-YZ(d.e(e%fd/YZ)d0e(e$fd1YZ*d2S(3sd Provide :class:`_expression.Insert`, :class:`_expression.Update` and :class:`_expression.Delete`. i(tNullTypei(t coercions(troles(tutil(t_entity_namespace_key(t_exclusive_against(t _from_objects(t _generative(tColumnCollection(t CompileState(t DialectKWArgs(t Executable(tHasCompileState(tBooleanClauseList(t ClauseElement(tNull(tHasCTE(t HasPrefixes(t ReturnsRows(tInternalTraversali(texc(tcollections_abctDMLStatecBseZeZd Zd Zd Zd Ze Z e Z e Z e Z dZedZedZedZedZdZdZdZdZd Zd ZRS( cKs tdS(N(tNotImplementedError(tselft statementtcompilertkw((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt__init__0scCsi|jjd6|jd6S(Ntnamettable(RR(tclsR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytget_entity_description3scCs5g|jD]'}i|jd6|jd6|d6^q S(NRttypetexpr(t_all_selected_columnstkeyR!(RRtc((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt!get_returning_column_descriptions7scCs |jjS(N(RR(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt dml_tableBsc CsPg|D]E\}}tjtj|tjtj|dtdtf^qS(Nttype_tis_crud(RtexpectRt DMLColumnRoletExpressionElementRoleRtTrue(RRt kv_iteratortktv((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_get_crud_kv_pairsFs cCsg}ttj|j}|dh}xZ|jD]O}xFt|D]8}|j|jsp|j|n|j |jqHWq5W|j |d|S(Nii( tlisttsql_utilttables_from_leftmostRt_where_criteriaRt intersectiont _cloned_settappendtupdatetextend(RRtfromst all_tablestseentcrittitem((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_make_extra_fromsUs cCs|js(tjd|jjnx|jD]}g|D]=}t|tjrvdt |j j |Dn|^q?}|j rt |_ t|_||_|jd|_q2|js|jq2|jj|q2WdS(Ns6%s construct does not support multiple parameter sets.cSs"i|]\}}||jqS((R$(t.0R%tvalue((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys ns i(t_supports_multi_parametersRtInvalidRequestErrort__visit_name__tuppert _multi_valuest isinstanceRtSequencetzipRR%t_no_parameterstFalseR-t_has_multi_parameterst_multi_parameterst_dict_parameterst_cant_mix_formats_errorR:(RRt parameterst parameter_settmulti_parameters((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_process_multi_valuesds G      cCsD|jr*t|_|j|_t|_n|jr@|jndS(N(RKRLRMt_valuesRORP(RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_process_valuess      cCs|j}|jrXt|_t||_||_g|D]\}}|^q:|_n%|jrn|jntj ddS(NsQCan only invoke ordered_values() once, and not mixed with any other values() call( t_ordered_valuesRKRLtdictROt_parameter_orderingRMRPRRD(RRRQR$RB((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_process_ordered_valuess    %  cCsGd|jD}|jr1t|_||_ntsCtddS(NcSs1i|]'}ttjtj|dtqS(tas_key(RRR*RR+R-(RAR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys s s%This statement already has parameters(t _select_namesRKRLROtAssertionError(RRRQ((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_process_select_valuess     cCstjddS(NsCan't mix single and multiple VALUES formats in one INSERT statement; one style appends to a list while the other replaces values, so the intent is ambiguous.(RRD(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRPsN(t__name__t __module__R-RKtNoneRORNRWRYRLRMtisupdatetisdeletetisinsertRt classmethodR R&tpropertyR'R1R@RTRVRZR^RP(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR%s(       tdefaulttinserttInsertDMLStatecBs/eZeZeZdZejdZ RS(cKsg||_t|_|jr+|j|n|jdk rJ|j|n|jrc|j |ndS(N( RR-RdR\R^RURaRVRGRT(RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs    cCs)g|jD]}tjtj|^q S(N(RORt expect_as_keyRR+(Rtcol((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_insert_col_keyss( R_R`R-RdRLtinclude_table_with_column_exprsRRtmemoized_propertyRl(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRis R9tUpdateDMLStatecBseZeZeZdZRS(cKs||_t|_|j|_|jdk r=|j|n8|jdk r\|j|n|j ru|j |n|j ||_ }|o|j |_}|o|j|_dS(N(RR-Rbt_preserve_parameter_orderRWRaRZRURVRGRTR@t _extra_fromsROt is_multitablet'render_table_with_column_in_update_fromRm(RRRRteftmt((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs    (R_R`R-RbRLRmR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRostdeletetDeleteDMLStatecBseZeZdZRS(cKs(||_t|_|j||_dS(N(RR-RcR@Rq(RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs  (R_R`R-RcR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRwst UpdateBasecBseZdZdZejjied6Zej Z e Z e Z dZdZeZedZdZdZedZdZdZd ZeeeZed Zed Zed Zedd dZedZ edZ!RS(sDForm the base for ``INSERT``, ``UPDATE``, and ``DELETE`` statements.t update_baset autocommitcs\tddddddddd d d d d dddtjfd|DS(Nt whereclausesThe :paramref:`%(func)s.whereclause` parameter will be removed in SQLAlchemy 2.0. Please refer to the :meth:`%(classname)s.where` method.tvaluessThe :paramref:`%(func)s.values` parameter will be removed in SQLAlchemy 2.0. Please refer to the :meth:`%(classname)s.values` method.tbindsuThe :paramref:`%(func)s.bind` parameter will be removed in SQLAlchemy 2.0. Please use explicit connection execution.tinlinesThe :paramref:`%(func)s.inline` parameter will be removed in SQLAlchemy 2.0. Please use the :meth:`%(classname)s.inline` method.tprefixessThe :paramref:`%(func)s.prefixes parameter will be removed in SQLAlchemy 2.0. Please use the :meth:`%(classname)s.prefix_with` method.treturn_defaultssThe :paramref:`%(func)s.return_defaults` parameter will be removed in SQLAlchemy 2.0. Please use the :meth:`%(classname)s.return_defaults` method.t returningsThe :paramref:`%(func)s.returning` parameter will be removed in SQLAlchemy 2.0. Please use the :meth:`%(classname)s.returning`` method.tpreserve_parameter_ordersThe :paramref:`%(func)s.preserve_parameter_order` parameter will be removed in SQLAlchemy 2.0. Use the :meth:`%(classname)s.ordered_values` method with a list of tuples. cs=i|]3}d|idd6dd6f|qS(s2.0s_expression.%stfunct classname((RAR(tclsnametfn_nametparam_to_method_lookup(sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys 9s (RXRtdeprecated_params(RRRtnames((RRRsE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_constructor_20_deprecationss cs'jjfd|jDdS(Nc3s|]}|jVqdS(N(t _make_proxy(RARk(t fromclause(sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys Gs(t_columnst_populate_separate_keyst _returning(RR((RsE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt#_generate_fromclause_column_proxiesEs cOstddS(sSet the parameters for the statement. This method raises ``NotImplementedError`` on the base class, and is overridden by :class:`.ValuesBase` to provide the SET/VALUES clause of UPDATE and INSERT. sparams() is not supported for INSERT/UPDATE/DELETE statements. To set the values for an INSERT or UPDATE statement, use stmt.values(**parameters).N(R(RtargR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytparamsJscKs|j|dS(s Add dialect options to this INSERT/UPDATE/DELETE object. e.g.:: upd = table.update().dialect_options(mysql_limit=10) .. versionadded: 1.4 - this method supersedes the dialect options associated with the constructor. N(t_validate_dialect_kwargs(Rtopt((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytwith_dialect_optionsXs cCs(tjd|jj|j|dS(NsPassing dialect keyword arguments directly to the %s constructor is deprecated and will be removed in SQLAlchemy 2.0. Please use the ``with_dialect_options()`` method.(Rtwarn_deprecated_20t __class__R_R(Rt dialect_kw((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt#_validate_dialect_kwargs_deprecatedgscCs|jp|jjS(suReturn a 'bind' linked to this :class:`.UpdateBase` or a :class:`_schema.Table` associated with it. (t_bindRR}(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR}pscCs ||_dS(N(R(RR}((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt _set_bindwscGs>|jrtjdn|jtd|D7_dS(s Add a :term:`RETURNING` or equivalent clause to this statement. e.g.: .. sourcecode:: pycon+sql >>> stmt = ( ... table.update() ... .where(table.c.data == "value") ... .values(status="X") ... .returning(table.c.server_flag, table.c.updated_timestamp) ... ) >>> print(stmt) UPDATE some_table SET status=:status WHERE some_table.data = :data_1 RETURNING some_table.server_flag, some_table.updated_timestamp The method may be invoked multiple times to add new entries to the list of expressions to be returned. .. versionadded:: 1.4.0b2 The method may be invoked multiple times to add new entries to the list of expressions to be returned. The given collection of column expressions should be derived from the table that is the target of the INSERT, UPDATE, or DELETE. While :class:`_schema.Column` objects are typical, the elements can also be expressions: .. sourcecode:: pycon+sql >>> stmt = table.insert().returning( ... (table.c.first_name + " " + table.c.last_name).label("fullname") ... ) >>> print(stmt) INSERT INTO some_table (first_name, last_name) VALUES (:first_name, :last_name) RETURNING some_table.first_name || :first_name_1 || some_table.last_name AS fullname Upon compilation, a RETURNING clause, or database equivalent, will be rendered within the statement. For INSERT and UPDATE, the values are the newly inserted/updated values. For DELETE, the values are those of the rows which were deleted. Upon execution, the values of the columns to be returned are made available via the result set and can be iterated using :meth:`_engine.CursorResult.fetchone` and similar. For DBAPIs which do not natively support returning values (i.e. cx_oracle), SQLAlchemy will approximate this behavior at the result level so that a reasonable amount of behavioral neutrality is provided. Note that not all databases/DBAPIs support RETURNING. For those backends with no support, an exception is raised upon compilation and/or execution. For those who do support it, the functionality across backends varies greatly, including restrictions on executemany() and other statements which return multiple rows. Please read the documentation notes for the database in use in order to determine the availability of RETURNING. .. seealso:: :meth:`.ValuesBase.return_defaults` - an alternative method tailored towards efficient fetching of server-side defaults and triggers for single-row INSERTs or UPDATEs. :ref:`tutorial_insert_returning` - in the :ref:`unified_tutorial` s9return_defaults() is already configured on this statementcss$|]}tjtj|VqdS(N(RR*RtColumnsClauseRole(RAR%((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys sN(t_return_defaultsRRDRttuple(Rtcols((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR|s G   cCs|jS(N(R(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR#scCstd|jDjS(sxReturn the RETURNING columns as a column collection for this statement. .. versionadded:: 1.4 css|]}|j|fVqdS(N(R$(RAR%((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys s(RR#t as_immutable(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytexported_columnss t*cCs>|dkr|j}n|jji|||f6|_dS(sAdd a table hint for a single table to this INSERT/UPDATE/DELETE statement. .. note:: :meth:`.UpdateBase.with_hint` currently applies only to Microsoft SQL Server. For MySQL INSERT/UPDATE/DELETE hints, use :meth:`.UpdateBase.prefix_with`. The text of the hint is rendered in the appropriate location for the database backend in use, relative to the :class:`_schema.Table` that is the subject of this statement, or optionally to that of the given :class:`_schema.Table` passed as the ``selectable`` argument. The ``dialect_name`` option will limit the rendering of a particular hint to a particular backend. Such as, to add a hint that only takes effect for SQL Server:: mytable.insert().with_hint("WITH (PAGLOCK)", dialect_name="mssql") :param text: Text of the hint. :param selectable: optional :class:`_schema.Table` that specifies an element of the FROM clause within an UPDATE or DELETE to be the subject of the hint - applies only to certain backends. :param dialect_name: defaults to ``*``, if specified as the name of a particular dialect, will apply these hints only when that dialect is in use. N(RaRt_hintstunion(Rttextt selectablet dialect_name((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt with_hints  cCstj|j}||S(s=Return a :term:`plugin-enabled` description of the table and/or entity which this DML construct is operating against. This attribute is generally useful when using the ORM, as an extended structure which includes information about mapped entities is returned. The section :ref:`queryguide_inspection` contains more background. For a Core statement, the structure returned by this accessor is derived from the :attr:`.UpdateBase.table` attribute, and refers to the :class:`.Table` being inserted, updated, or deleted:: >>> stmt = insert(user_table) >>> stmt.entity_description { "name": "user_table", "table": Table("user_table", ...) } .. versionadded:: 1.4.33 .. seealso:: :attr:`.UpdateBase.returning_column_descriptions` :attr:`.Select.column_descriptions` - entity information for a :func:`.select` construct :ref:`queryguide_inspection` - ORM background (Rtget_plugin_classR (Rtmeth((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytentity_descriptions!cCstj|j}||S(sReturn a :term:`plugin-enabled` description of the columns which this DML construct is RETURNING against, in other words the expressions established as part of :meth:`.UpdateBase.returning`. This attribute is generally useful when using the ORM, as an extended structure which includes information about mapped entities is returned. The section :ref:`queryguide_inspection` contains more background. For a Core statement, the structure returned by this accessor is derived from the same objects that are returned by the :attr:`.UpdateBase.exported_columns` accessor:: >>> stmt = insert(user_table).returning(user_table.c.id, user_table.c.name) >>> stmt.entity_description [ { "name": "id", "type": Integer, "expr": Column("id", Integer(), table=, ...) }, { "name": "name", "type": String(), "expr": Column("name", String(), table=, ...) }, ] .. versionadded:: 1.4.33 .. seealso:: :attr:`.UpdateBase.entity_description` :attr:`.Select.column_descriptions` - entity information for a :func:`.select` construct :ref:`queryguide_inspection` - ORM background (RRR&(RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytreturning_column_descriptions$s* N(("R_R`t__doc__RER t_execution_optionsRR-Rt immutabledictRRLtnamed_with_columnRRat_return_defaults_columnsRtis_dmlReRRRRRRR}RRfRR#RRRR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRxs2   @    O #$t ValuesBasec BseZdZdZeZeZd Zd Z d Z dZ d Z d Z dZdZeedddidd6dd6dZeed did d 6d ied 6d ZRS(sTSupplies support for :meth:`.ValuesBase.values` to INSERT and UPDATE constructs.t values_basecCsZtjtj|d||_|dk r@|jj||n|rV|j|ndS(Ntapply_propagate_attrs( RR*Rt DMLTableRoleRRaR|tnon_generativet_setup_prefixes(RRR|R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRfs  R\RWtmsgss,This construct already inserts from a SELECTs1This statement already has ordered values presentcOs|r|d}|r(tjdqt|dkrLtjdq|j rt|tjr|rt|dttt fr|j |f7_ dSdt |j j |D}q|jrt|tj rtdqn|}|rtjdntj|j}|jr>||||_nRd|||jD}|jr~|jj||_ntj||_dS( sSpecify a fixed VALUES clause for an INSERT statement, or the SET clause for an UPDATE. Note that the :class:`_expression.Insert` and :class:`_expression.Update` constructs support per-execution time formatting of the VALUES and/or SET clauses, based on the arguments passed to :meth:`_engine.Connection.execute`. However, the :meth:`.ValuesBase.values` method can be used to "fix" a particular set of parameters into the statement. Multiple calls to :meth:`.ValuesBase.values` will produce a new construct, each one with the parameter list modified to include the new parameters sent. In the typical case of a single dictionary of parameters, the newly passed keys will replace the same keys in the previous construct. In the case of a list-based "multiple values" construct, each new list of values is extended onto the existing list of values. :param \**kwargs: key value pairs representing the string key of a :class:`_schema.Column` mapped to the value to be rendered into the VALUES or SET clause:: users.insert().values(name="some name") users.update().where(users.c.id==5).values(name="some name") :param \*args: As an alternative to passing key/value parameters, a dictionary, tuple, or list of dictionaries or tuples can be passed as a single positional argument in order to form the VALUES or SET clause of the statement. The forms that are accepted vary based on whether this is an :class:`_expression.Insert` or an :class:`_expression.Update` construct. For either an :class:`_expression.Insert` or :class:`_expression.Update` construct, a single dictionary can be passed, which works the same as that of the kwargs form:: users.insert().values({"name": "some name"}) users.update().values({"name": "some new name"}) Also for either form but more typically for the :class:`_expression.Insert` construct, a tuple that contains an entry for every column in the table is also accepted:: users.insert().values((5, "some name")) The :class:`_expression.Insert` construct also supports being passed a list of dictionaries or full-table-tuples, which on the server will render the less common SQL syntax of "multiple values" - this syntax is supported on backends such as SQLite, PostgreSQL, MySQL, but not necessarily others:: users.insert().values([ {"name": "some name"}, {"name": "some other name"}, {"name": "yet another name"}, ]) The above form would render a multiple VALUES statement similar to:: INSERT INTO users (name) VALUES (:name_1), (:name_2), (:name_3) It is essential to note that **passing multiple values is NOT the same as using traditional executemany() form**. The above syntax is a **special** syntax not typically used. To emit an INSERT statement against multiple rows, the normal method is to pass a multiple values list to the :meth:`_engine.Connection.execute` method, which is supported by all database backends and is generally more efficient for a very large number of parameters. .. seealso:: :ref:`tutorial_multiple_parameters` - an introduction to the traditional Core method of multiple parameter set invocation for INSERTs and other statements. .. versionchanged:: 1.0.0 an INSERT that uses a multiple-VALUES clause, even a list of length one, implies that the :paramref:`_expression.Insert.inline` flag is set to True, indicating that the statement will not attempt to fetch the "last inserted primary key" or other defaults. The statement deals with an arbitrary number of rows, so the :attr:`_engine.CursorResult.inserted_primary_key` accessor does not apply. .. versionchanged:: 1.0.0 A multiple-VALUES INSERT now supports columns with Python side default values and callables in the same way as that of an "executemany" style of invocation; the callable is invoked for each row. See :ref:`bug_3288` for other details. The UPDATE construct also supports rendering the SET parameters in a specific order. For this feature refer to the :meth:`_expression.Update.ordered_values` method. .. seealso:: :meth:`_expression.Update.ordered_values` is;Can't pass positional and kwargs to values() simultaneouslyisWOnly a single dictionary/tuple or list of dictionaries/tuples is accepted positionally.NcSs"i|]\}}||jqS((R$(RAR%RB((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys s sOWhen preserve_parameter_order is True, values() only accepts a list of 2-tuplescSsi|]\}}||qS(((RAR/R0((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pys #s (Rt ArgumentErrortlenRpRHRRIR2RXRRGRJRR%t ValueErrorRRR1RWtitemsRURRR(RtargstkwargsRt kv_generator((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR|os:z    ""    Rs1RETURNING is already configured on this statementtdefaultscGst|_||_dS(sMake use of a :term:`RETURNING` clause for the purpose of fetching server-side expressions and defaults. E.g.:: stmt = table.insert().values(data='newdata').return_defaults() result = connection.execute(stmt) server_created_at = result.returned_defaults['created_at'] When used against a backend that supports RETURNING, all column values generated by SQL expression or server-side-default will be added to any existing RETURNING clause, provided that :meth:`.UpdateBase.returning` is not used simultaneously. The column values will then be available on the result using the :attr:`_engine.CursorResult.returned_defaults` accessor as a dictionary, referring to values keyed to the :class:`_schema.Column` object as well as its ``.key``. This method differs from :meth:`.UpdateBase.returning` in these ways: 1. :meth:`.ValuesBase.return_defaults` is only intended for use with an INSERT or an UPDATE statement that matches exactly one row per parameter set. While the RETURNING construct in the general sense supports multiple rows for a multi-row UPDATE or DELETE statement, or for special cases of INSERT that return multiple rows (e.g. INSERT from SELECT, multi-valued VALUES clause), :meth:`.ValuesBase.return_defaults` is intended only for an "ORM-style" single-row INSERT/UPDATE statement. The row returned by the statement is also consumed implicitly when :meth:`.ValuesBase.return_defaults` is used. By contrast, :meth:`.UpdateBase.returning` leaves the RETURNING result-set intact with a collection of any number of rows. 2. It is compatible with the existing logic to fetch auto-generated primary key values, also known as "implicit returning". Backends that support RETURNING will automatically make use of RETURNING in order to fetch the value of newly generated primary keys; while the :meth:`.UpdateBase.returning` method circumvents this behavior, :meth:`.ValuesBase.return_defaults` leaves it intact. 3. It can be called against any backend. Backends that don't support RETURNING will skip the usage of the feature, rather than raising an exception. The return value of :attr:`_engine.CursorResult.returned_defaults` will be ``None`` 4. An INSERT statement invoked with executemany() is supported if the backend database driver supports the ``insert_executemany_returning`` feature, currently this includes PostgreSQL with psycopg2. When executemany is used, the :attr:`_engine.CursorResult.returned_defaults_rows` and :attr:`_engine.CursorResult.inserted_primary_key_rows` accessors will return the inserted defaults and primary keys. .. versionadded:: 1.4 :meth:`.ValuesBase.return_defaults` is used by the ORM to provide an efficient implementation for the ``eager_defaults`` feature of :func:`.mapper`. :param cols: optional list of column key names or :class:`_schema.Column` objects. If omitted, all column expressions evaluated on the server are added to the returning list. .. versionadded:: 0.9.0 .. seealso:: :meth:`.UpdateBase.returning` :attr:`_engine.CursorResult.returned_defaults` :attr:`_engine.CursorResult.returned_defaults_rows` :attr:`_engine.CursorResult.inserted_primary_key` :attr:`_engine.CursorResult.inserted_primary_key_rows` N(R-RR(RR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR)s\ N(((R_R`RRERLRCRpRatselectt_post_values_clauseRURGRWR\RRRRR|R(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRTs2  tInsertc Bs5eZdZdZeZdZeZ eZ de j fde j fde jfde jfde jfde j fde j fd e jfd e jfd e j fd e jfg ejejejejZejdd ddddddgdedddedZedZ eedZ!RS(sRepresent an INSERT construct. The :class:`_expression.Insert` object is created using the :func:`_expression.insert()` function. RhRt_inlineR\RURGRRRRRRRR|R~R}RRRc Kstt|j|||||_||_|r@||_n|rV|j|n|rt|_t |t s||_ qndS(sConstruct an :class:`_expression.Insert` object. E.g.:: from sqlalchemy import insert stmt = ( insert(user_table). values(name='username', fullname='Full Username') ) Similar functionality is available via the :meth:`_expression.TableClause.insert` method on :class:`_schema.Table`. .. seealso:: :ref:`tutorial_core_insert` - in the :ref:`unified_tutorial` :param table: :class:`_expression.TableClause` which is the subject of the insert. :param values: collection of values to be inserted; see :meth:`_expression.Insert.values` for a description of allowed formats here. Can be omitted entirely; a :class:`_expression.Insert` construct will also dynamically render the VALUES clause at execution time based on the parameters passed to :meth:`_engine.Connection.execute`. :param inline: if True, no attempt will be made to retrieve the SQL-generated default values to be provided within the statement; in particular, this allows SQL expressions to be rendered 'inline' within the statement without the need to pre-execute them beforehand; for backends that support "returning", this turns off the "implicit returning" feature for the statement. If both :paramref:`_expression.Insert.values` and compile-time bind parameters are present, the compile-time bind parameters override the information specified within :paramref:`_expression.Insert.values` on a per-key basis. The keys within :paramref:`_expression.Insert.values` can be either :class:`~sqlalchemy.schema.Column` objects or their string identifiers. Each key may reference one of: * a literal data value (i.e. string, number, etc.); * a Column object; * a SELECT statement. If a ``SELECT`` statement is specified which references this ``INSERT`` statement's table, the statement will be correlated against the ``INSERT`` statement. .. seealso:: :ref:`tutorial_core_insert` - in the :ref:`unified_tutorial` N( tsuperRRRRRRR-RRHtboolR( RRR|R~R}RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRsT    cCs t|_dS(sMake this :class:`_expression.Insert` construct "inline" . When set, no attempt will be made to retrieve the SQL-generated default values to be provided within the statement; in particular, this allows SQL expressions to be rendered 'inline' within the statement without the need to pre-execute them beforehand; for backends that support "returning", this turns off the "implicit returning" feature for the statement. .. versionchanged:: 1.4 the :paramref:`_expression.Insert.inline` parameter is now superseded by the :meth:`_expression.Insert.inline` method. N(R-R(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR~scCsR|jrtjdn||_t|_||_tjt j ||_ dS(s Return a new :class:`_expression.Insert` construct which represents an ``INSERT...FROM SELECT`` statement. e.g.:: sel = select(table1.c.a, table1.c.b).where(table1.c.c > 5) ins = table2.insert().from_select(['a', 'b'], sel) :param names: a sequence of string column names or :class:`_schema.Column` objects representing the target columns. :param select: a :func:`_expression.select` construct, :class:`_expression.FromClause` or other construct which resolves into a :class:`_expression.FromClause`, such as an ORM :class:`_query.Query` object, etc. The order of columns returned from this FROM clause should correspond to the order of columns sent as the ``names`` parameter; while this is not checked before passing along to the database, the database would normally raise an exception if these column lists don't correspond. :param include_defaults: if True, non-server default values and SQL expressions as specified on :class:`_schema.Column` objects (as documented in :ref:`metadata_defaults_toplevel`) not otherwise specified in the list of names will be rendered into the INSERT and SELECT statements, so that these values are also included in the data to be inserted. .. note:: A Python-side default that uses a Python callable function will only be invoked **once** for the whole statement, and **not per row**. .. versionadded:: 1.0.0 - :meth:`_expression.Insert.from_select` now renders Python-side and SQL expression column defaults into the SELECT statement for columns otherwise not included in the list of column names. .. versionchanged:: 1.0.0 an INSERT that uses FROM SELECT implies that the :paramref:`_expression.insert.inline` flag is set to True, indicating that the statement will not attempt to fetch the "last inserted primary key" or other defaults. The statement deals with an arbitrary number of rows, so the :attr:`_engine.CursorResult.inserted_primary_key` accessor does not apply. s0This construct already inserts value expressionsN( RURRDR\R-Rt#include_insert_from_select_defaultsRR*Rt DMLSelectRoleR(RRRtinclude_defaults((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt from_select&s3     N("R_R`RRER-RCRaRRLRt is_insertRtdp_clauseelementt dp_booleantdp_string_listt dp_dml_valuestdp_dml_multi_valuestdp_clauseelement_tupletdp_table_hint_listRt _has_prefixes_traverse_internalsR t"_dialect_kwargs_traverse_internalsR t_executable_traverse_internalsRt_has_ctes_traverse_internalst_traverse_internalsRRRRR~R(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs2 Mt DMLWhereBasecBsGeZdZedZdZdZdZedZ RS(cGs<x5|D]-}tjtj|}|j|f7_qWdS(sReturn a new construct with the given expression(s) added to its WHERE clause, joined to the existing clause via AND, if any. Both :meth:`_dml.Update.where` and :meth:`_dml.Delete.where` support multiple-table forms, including database-specific ``UPDATE...FROM`` as well as ``DELETE..USING``. For backends that don't have multiple-table support, a backend agnostic approach to using multiple tables is to make use of correlated subqueries. See the linked tutorial sections below for examples. .. seealso:: :ref:`tutorial_correlated_updates` :ref:`tutorial_update_from` :ref:`tutorial_multi_table_deletes` N(RR*RtWhereHavingRoleR5(RR{t criteriontwhere_criteria((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytwheregs cGs |j|S(sbA synonym for the :meth:`_dml.DMLWhereBase.where` method. .. versionadded:: 1.4 (R(Rtcriteria((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytfilterscCs|jS(N(R(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt_filter_by_zeroscKsM|j}g|jD]!\}}t|||k^q}|j|S(sWapply the given filtering criterion as a WHERE clause to this select. (RRRR(RRt from_entityR$RBtclauses((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt filter_bys 1cCstj|jS(sReturn the completed WHERE clause for this :class:`.DMLWhereBase` statement. This assembles the current collection of WHERE criteria into a single :class:`_expression.BooleanClauseList` construct. .. versionadded:: 1.4 (R t_construct_for_whereclauseR5(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR{s (( R_R`R5RRRRRRfR{(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRds   tUpdatec BseZdZdZeZdejfdejfdej fdej fdej fdejfdej fd ej fd ejfg e jejejejZejdd d d ddddddgddedddeedZedZedZRS(sRepresent an Update construct. The :class:`_expression.Update` object is created using the :func:`_expression.update()` function. R9RR5RRWRURRRRRR{R|R~R}RRRRc Ks| |_tt|j|||||_|r@||_n|dk rp|jtj t j |f7_n||_ | r|j | n||_dS(sConstruct an :class:`_expression.Update` object. E.g.:: from sqlalchemy import update stmt = ( update(user_table). where(user_table.c.id == 5). values(name='user #5') ) Similar functionality is available via the :meth:`_expression.TableClause.update` method on :class:`_schema.Table`. :param table: A :class:`_schema.Table` object representing the database table to be updated. :param whereclause: Optional SQL expression describing the ``WHERE`` condition of the ``UPDATE`` statement; is equivalent to using the more modern :meth:`~Update.where()` method to specify the ``WHERE`` clause. :param values: Optional dictionary which specifies the ``SET`` conditions of the ``UPDATE``. If left as ``None``, the ``SET`` conditions are determined from those parameters passed to the statement during the execution and/or compilation of the statement. When compiled standalone without any parameters, the ``SET`` clause generates for all columns. Modern applications may prefer to use the generative :meth:`_expression.Update.values` method to set the values of the UPDATE statement. :param inline: if True, SQL defaults present on :class:`_schema.Column` objects via the ``default`` keyword will be compiled 'inline' into the statement and not pre-executed. This means that their values will not be available in the dictionary returned from :meth:`_engine.CursorResult.last_updated_params`. :param preserve_parameter_order: if True, the update statement is expected to receive parameters **only** via the :meth:`_expression.Update.values` method, and they must be passed as a Python ``list`` of 2-tuples. The rendered UPDATE statement will emit the SET clause for each referenced column maintaining this order. .. versionadded:: 1.0.10 .. seealso:: :ref:`updates_order_parameters` - illustrates the :meth:`_expression.Update.ordered_values` method. If both ``values`` and compile-time bind parameters are present, the compile-time bind parameters override the information specified within ``values`` on a per-key basis. The keys within ``values`` can be either :class:`_schema.Column` objects or their string identifiers (specifically the "key" of the :class:`_schema.Column`, normally but not necessarily equivalent to its "name"). Normally, the :class:`_schema.Column` objects used here are expected to be part of the target :class:`_schema.Table` that is the table to be updated. However when using MySQL, a multiple-table UPDATE statement can refer to columns from any of the tables referred to in the WHERE clause. The values referred to in ``values`` are typically: * a literal data value (i.e. string, number, etc.) * a SQL expression, such as a related :class:`_schema.Column`, a scalar-returning :func:`_expression.select` construct, etc. When combining :func:`_expression.select` constructs within the values clause of an :func:`_expression.update` construct, the subquery represented by the :func:`_expression.select` should be *correlated* to the parent table, that is, providing criterion which links the table inside the subquery to the outer table being updated:: users.update().values( name=select(addresses.c.email_address).\ where(addresses.c.user_id==users.c.id).\ scalar_subquery() ) .. seealso:: :ref:`inserts_and_updates` - SQL Expression Language Tutorial N(RpRRRRRRaR5RR*RRRRR( RRR{R|R~R}RRRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs~     cGs^|jrtjdn|jr6tjdntj|j}||||_dS(sSpecify the VALUES clause of this UPDATE statement with an explicit parameter ordering that will be maintained in the SET clause of the resulting UPDATE statement. E.g.:: stmt = table.update().ordered_values( ("name", "ed"), ("ident": "foo") ) .. seealso:: :ref:`tutorial_parameter_ordered_updates` - full example of the :meth:`_expression.Update.ordered_values` method. .. versionchanged:: 1.4 The :meth:`_expression.Update.ordered_values` method supersedes the :paramref:`_expression.update.preserve_parameter_order` parameter, which will be removed in SQLAlchemy 2.0. s)This statement already has values presents1This statement already has ordered values presentN(RURRRWRRR1(RRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pytordered_valuesYs    cCs t|_dS(sJMake this :class:`_expression.Update` construct "inline" . When set, SQL defaults present on :class:`_schema.Column` objects via the ``default`` keyword will be compiled 'inline' into the statement and not pre-executed. This means that their values will not be available in the dictionary returned from :meth:`_engine.CursorResult.last_updated_params`. .. versionchanged:: 1.4 the :paramref:`_expression.update.inline` parameter is now superseded by the :meth:`_expression.Update.inline` method. N(R-R(R((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyR~}sN(R_R`RRER-t is_updateRRRRtdp_dml_ordered_valuesRRRRR RR RRRRRRRaRLRRRR~(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs2 t$tDeletecBseZdZdZeZdejfdejfdejfdej fge j e j ejejZejddddd d d gd d d d d ZRS(sRepresent a DELETE construct. The :class:`_expression.Delete` object is created using the :func:`_expression.delete()` function. RvRR5RRRR{R|R}RRcKs||_tjtj|d||_|r9||_n|rO|j|n|dk r|j tjtj |f7_ n|r|j |ndS(sConstruct :class:`_expression.Delete` object. E.g.:: from sqlalchemy import delete stmt = ( delete(user_table). where(user_table.c.id == 5) ) Similar functionality is available via the :meth:`_expression.TableClause.delete` method on :class:`_schema.Table`. .. seealso:: :ref:`inserts_and_updates` - in the :ref:`1.x tutorial ` :ref:`tutorial_core_update_delete` - in the :ref:`unified_tutorial` :param table: The table to delete rows from. :param whereclause: Optional SQL expression describing the ``WHERE`` condition of the ``DELETE`` statement; is equivalent to using the more modern :meth:`~Delete.where()` method to specify the ``WHERE`` clause. .. seealso:: :ref:`deletes` - SQL Expression Tutorial RN( RRR*RRRRRRaR5RR(RRR{R}RRR((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs1   N(R_R`RRER-t is_deleteRRRRRRR RR RRRRRRRaR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyRs RN(+Rtsqlalchemy.typesRtRRRR3tbaseRRRRRR R R R telementsR RRRRRRtvisitorsRRRRt plugin_forRiRoRwtDMLRoleRxRRtobjectRRR(((sE/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/sql/dml.pyt s\ b6H