
    i&                        d Z ddlmZ ddlmZmZ ddlmZ ej                  Zej                  Z	ej                  Z
ej                  Zej                  Zej                  Zej                  Zej                  Z G d de      Zy)	z;
Module gathering the various parts of the copy subsystem.
    )IO   )_copy_copy_async)Bufferc                   2    e Zd ZdZdee   fdZdeddfdZy)
FileWriterz
    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                     || _         y N)r
   )selfr
   s     l/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/venv/lib/python3.12/site-packages/psycopg/copy.py__init__zFileWriter.__init__   s	    	    datareturnNc                 :    | j                   j                  |       y r   )r
   write)r   r   s     r   r   zFileWriter.write"   s    		r   )	__name__
__module____qualname____doc__r   bytesr   r   r    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   