
    ,h&                        S r SSKJr  SSKJrJr  SSKJr  \R                  r\R                  r	\R                  r
\R                  r\R                  r\R                  r\R                  r\R                  r " S S\5      rg)	z;
Module gathering the various parts of the copy subsystem.
    )IO   )_copy_copy_async)Bufferc                   >    \ rS rSrSrS\\   4S jrS\SS4S jr	S	r
g)

FileWriter   z
A `Writer` to write copy data to a file-like object.

:param file: the file where to write copy data. It must be open for writing
    in binary mode.
filec                     Xl         g Nr   )selfr   s     G/var/www/html/Ai_home/venv/lib/python3.13/site-packages/psycopg/copy.py__init__FileWriter.__init__   s    	    datareturnNc                 :    U R                   R                  U5        g r   )r   write)r   r   s     r   r   FileWriter.write"   s    		r   r   )__name__
__module____qualname____firstlineno____doc__r   bytesr   r   r   __static_attributes__ r   r   r	   r	      s*    RY & T r   r	   N)r   typingr    r   r   abcr   	AsyncCopyAsyncWriterAsyncLibpqWriterAsyncQueuedLibpqWriterCopyWriterLibpqWriterQueuedLibpqWriterr	   r    r   r   <module>r,      sz        !!	%%// $;; zz	++  r   