+
    Tji                         R t ^ RIHt ^ RIHtHtHt ^ RIHt . ROt	 ! R R]4      t
 ! R	 R]4      t ! R
 R]4      t ! R R]4      tR# )zR
Query subclasses which provide extra functionality beyond simple data
retrieval.
)
FieldError)GET_ITERATOR_CHUNK_SIZE
NO_RESULTS	ROW_COUNT)QueryDeleteQueryUpdateQueryInsertQueryAggregateQueryc                   4   a  ] tR t^t o RtRtR tR tRtV t	R# )r   zA DELETE SQL query.SQLDeleteCompilerc                    WP                   V,          /V n         W n        V P                  V4      P                  \        4      # N)	alias_mapwhereget_compilerexecute_sqlr   )selftabler   usings   &&&&T/var/www/idalgo/venv/lib/python3.14/site-packages/django/db/models/sql/subqueries.pydo_queryDeleteQuery.do_query   s6    !67
  '33I>>    c                p   ^ pV P                  4       P                  p\        ^ \        V4      \        4       F{  pV P                  4        V P                  VP                   R2WV\        ,            4       W0P                  V P                  4       P                  V P                  VR7      ,          pK}  	  V# )z
Set up and execute delete queries for all the objects in pk_list.

More than one physical query may be executed if there are a
lot of values in pk_list.
__in)r   )get_metapkrangelenr   clear_where
add_filterattnamer   db_tabler   )r   pk_listr   num_deletedfieldoffsets   &&&   r   delete_batchDeleteQuery.delete_batch   s     ""As7|-DEFOO==/&*A!AB ==(($**E )  K F r   )r   r   N)
__name__
__module____qualname____firstlineno____doc__compilerr   r(   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     "H?
 r   c                   j   a a ] tR t^1t oRtRtV 3R ltR tV 3R ltR t	R t
R tR	 tR
 tRtVtV ;t# )r   zAn UPDATE SQL query.SQLUpdateCompilerc                H   < \         SV `  ! V/ VB  V P                  4        R # r   )super__init___setup_query)r   argskwargs	__class__s   &*,r   r7   UpdateQuery.__init__6   s!    $)&)r   c                0    . V n         RV n        / V n        R# )z
Run on initialization and at the end of chaining. Any attributes that
would normally be set in __init__() should go here instead.
N)valuesrelated_idsrelated_updates)r   s   &r   r8   UpdateQuery._setup_query:   s    
 !r   c                b   < \         SV `  4       pV P                  P                  4       Vn        V# r   )r6   cloner@   copy)r   objr;   s   & r   rC   UpdateQuery.cloneC   s*    gmo"22779
r   c                   V P                  V4       \        ^ \        V4      \        4       FV  pV P	                  4        V P                  RWV\        ,            4       V P                  V4      P                  \        4       KX  	  R# )    pk__inN)	add_update_valuesr   r   r   r    r!   r   r   r   )r   r$   r>   r   r'   s   &&&& r   update_batchUpdateQuery.update_batchH   sl    v&As7|-DEFOO'64K+KL e$00< Fr   c                   . pVP                  4        F  w  r4V P                  4       P                  V4      pVP                  P                  P
                  pVP                  R8X  d(   VP                  P                  '       d   \        R4      hVP                  '       g   \        RV,          4      hW`P                  4       P
                  Jd   V P                  WeV4       K  VP                  WVV34       K  	  V P                  V4      # )z
Convert a dictionary of field name to value mappings into an update
query. This is the entry point for the public update() method on
querysets.
r   z:Composite primary key fields must be updated individually.zBCannot update model field %r (only concrete fields are permitted).)itemsr   	get_fieldmodel_metaconcrete_modelnameis_composite_pkr   concreteadd_related_updateappendadd_update_fields)r   r>   
values_seqrS   valr&   rP   s   &&     r   rJ   UpdateQuery.add_update_valuesQ   s     
IDMMO--d3EKK%%44EzzT!ekk&A&A&A P  >>> X  MMO:::''c:uS12 (  %%j11r   c                    V F]  w  r#pVP                   '       d   K  \        VR4      '       d   VP                  V RRR7      pV P                  P	                  W#V34       K_  	  R# )z
Append a sequence of (field, model, value) triples to the internal list
that will be used to generate the UPDATE query. Might be more usefully
called add_update_targets() to hint at the extra information here.
resolve_expressionFT)allow_joinsfor_saveN)	generatedhasattrr]   r>   rW   )r   rY   r&   rP   rZ   s   &&   r   rX   UpdateQuery.add_update_fieldsj   s]     ",E#s011 ,,Tut,TKKc23 ",r   c                b    V P                   P                  V. 4      P                  VRV34       R# )z
Add (name, value) to an update query for an ancestor model.

Update are coalesced so that only one update query per ancestor is run.
N)r@   
setdefaultrW   )r   rP   r&   values   &&&&r   rV   UpdateQuery.add_related_updatez   s,     	''r2995$:NOr   c                   V P                   '       g   . # . pV P                   P                  4        FX  w  r#\        V4      pW4n        V P                  e$   VP                  RV P                  V,          4       VP                  V4       KZ  	  V# )z
Return a list of query objects: one for each update required to an
ancestor model. Each query will have the same filtering conditions as
the current query but will only update a single table.
rI   )r@   rN   r   r>   r?   r!   rW   )r   resultrP   r>   querys   &    r   get_related_updatesUpdateQuery.get_related_updates   s~     ###I!11779ME&E!L+  4+;+;E+BCMM%  : r   )r?   r@   r>   )r*   r+   r,   r-   r.   r/   r7   r8   rC   rK   rJ   rX   rV   rj   r0   r1   __classcell__r;   r2   s   @@r   r   r   1   s;     "H"
=224 P r   c                   P   a a ] tR t^t oRtRRRRRR/V 3R lltR	R ltRtVtV ;t	# )
r	   SQLInsertCompileron_conflictNupdate_fieldsunique_fieldsc                  < \         SV `  ! V/ VB  . V n        . V n        Wn        T;'       g    . V n        T;'       g    . V n        R # r   )r6   r7   fieldsobjsrp   rq   rr   )r   rp   rq   rr   r9   r:   r;   s   &$$$*,r   r7   InsertQuery.__init__   sK     	$)&)	&*00b*00br   c                *    Wn         W n        W0n        R # r   )rt   ru   raw)r   rt   ru   rx   s   &&&&r   insert_valuesInsertQuery.insert_values   s    	r   )rt   ru   rp   rx   rr   rq   )F)
r*   r+   r,   r-   r/   r7   ry   r0   r1   rl   rm   s   @@r   r	   r	      s1     "H1!%1591IM1 r   c                   :   a a ] tR t^t oRtRtV 3R ltRtVtV ;t	# )r
   zi
Take another query as a parameter to the FROM clause and only select the
elements in the provided list.
SQLAggregateCompilerc                2   < W n         \        SV `	  V4       R # r   )inner_queryr6   r7   )r   rP   r~   r;   s   &&&r   r7   AggregateQuery.__init__   s    &r   )r~   )
r*   r+   r,   r-   r.   r/   r7   r0   r1   rl   rm   s   @@r   r
   r
      s     
 &H   r   N)r   r   r	   r
   )r.   django.core.exceptionsr   django.db.models.sql.constantsr   r   r   django.db.models.sql.queryr   __all__r   r   r	   r
    r   r   <module>r      sW   
 . 
 -
I% @`% `F% &
 U 
 r   