+
    8i@                        R t ^ RIHt ^ RIHtHtHtHtHt ^ RI	H
t
Ht ^ RIHt ]'       d   ^ RIHt R R ltR R	 ltR
# )zRConstants, types, and classes shared across Client Bulk Write API implementations.)annotations)TYPE_CHECKINGAnyMappingMutableMappingNoReturn)ClientBulkWriteExceptionOperationFailure)_get_wce_doc)_DocumentOutc          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )   opsz#list[tuple[str, Mapping[str, Any]]]offsetintfull_resultzMutableMapping[str, Any]resultzMapping[str, Any]returnNone )formats   "Y/var/www/html/photoedit/myenv/lib/python3.14/site-packages/pymongo/_client_bulk_shared.py__annotate__r      s:     6 6	,66 *6 	6
 
6    c                   VP                  R4      '       d   VR,          VR&   VR;;,          VP                  R^ 4      ,          uu&   VR;;,          VP                  R^ 4      ,          uu&   VR;;,          VP                  R^ 4      ,          uu&   VR;;,          VP                  R^ 4      ,          uu&   VR;;,          VP                  R^ 4      ,          uu&   VP                  R4      pV'       dX   V FQ  pVP                  4       pVR,          V,           pWvR&   W,          ^,          VR	&   VR,          P                  V4       KS  	  \        V4      pV'       d   VR
,          P                  V4       R# R# )z?Merge result of a single bulk write batch into the full result.error	nInsertednDeletednMatched	nModified	nUpsertedwriteErrorsidxopwriteConcernErrorsN)getcopyappendr
   )	r   r   r   r   write_errorsdocreplacementoriginal_indexwces	   &&&&     r   _merge_commandr-      s1    zz'%gG

; ::
vzz*a88
vzz*a88

; ::

; ::::m,LC((*K Z&0N!/ # 3A 6K&--k:   v
C
()005 r   c               $    V ^8  d   QhRRRRRR/# )r   r   r   verbose_resultsboolr   r   r   )r   s   "r   r   r   <   s)     A AA04AAr   c                f   V R,          '       di   V R,          P                  R R7       V R,          ^ ,          pVR,          pVR,          pV^8X  d&   VP                  R4      '       d   Rp\        WSV 4      h\        V R,          \        4      '       d   \        W4      V R,          h\        W4      h)	z6Raise a ClientBulkWriteException from the full result.r!   c                    V R ,          # )r"   r   )r   s   &r   <lambda>4_throw_client_bulk_write_exception.<locals>.<lambda>B   s    %,r   )keycodeerrmsgzTransaction numberszrThis MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.r   )sort
startswithr	   
isinstanceBaseExceptionr   )r   r/   errr6   msgr7   s   &&    r   "_throw_client_bulk_write_exceptionr>   <   s    
 =!!M"'',F'G-(+6{(m2:#..)>??- 
 #6==+g&66&{D+V]J^^
";
@@r   N)__doc__
__future__r   typingr   r   r   r   r   pymongo.errorsr   r	   pymongo.helpers_sharedr
   pymongo.typingsr   r-   r>   r   r   r   <module>rE      s,     Y " H H E /,6@Ar   