o
    i                     @   s,   d dl mZ d dlmZ G dd deZdS )    )URI)
SqlCatalogc                	       s4   e Zd ZdZd
dedededdf fdd	Z  ZS )InMemoryCatalogz
    An in-memory catalog implementation that uses SqlCatalog with SQLite in-memory database.

    This is useful for test, demo, and playground but not in production as it does not support concurrent access.
    file:///tmp/iceberg/warehousename	warehousekwargsreturnNc                    s2   || _ t|vrd|t< t jd||d| d S )Nzsqlite:///:memory:)r   r    )_warehouse_locationr   super__init__)selfr   r   r   	__class__r
   V/home/ubuntu/transcripts/venv/lib/python3.10/site-packages/pyiceberg/catalog/memory.pyr      s   zInMemoryCatalog.__init__)r   )__name__
__module____qualname____doc__strr   __classcell__r
   r
   r   r   r      s    (r   N)pyiceberg.catalogr   pyiceberg.catalog.sqlr   r   r
   r
   r
   r   <module>   s   