i4jdZddlmZddlZddlZddlmZddlmZm Z ddl m Z Gdd e Z dS) zIn-memory filesystem to store ephemeral dependencies. Warning: Not for external use. May change at any moment. Likely to be made internal. ) annotationsN)AbstractFileSystem) MemoryFileMemoryFileSystem)BytesIOWrappercTeZdZUdZdZeejjZde d<d d Z d S)ModifiedMemoryFileSystemz?In-memory filesystem implementation that uses its own protocol.)DUCKDB_INTERNAL_OBJECTSTOREztyping.Callable[[str], str]_strip_protocolobj#io.IOBase | BytesIOWrapper | objectpathstrreturnNonec:t|drt|dsd}t|t|tjrt |}||}t||||j |<dS)zAdd a file to the filesystem.readseekz(Can not read from a non file-like objectN) hasattr TypeError isinstanceio TextIOBaserr rrstore)selfr rmsgs CC:\PYTHON\MyICR_Suite\python\Lib\site-packages\duckdb/filesystem.pyadd_filez!ModifiedMemoryFileSystem.add_filesV$$ !f)=)= !;?Q?a?j3k3kOkkkk > > > > > >r r ) r$ __future__rrtypingfsspecrfsspec.implementations.memoryrrbytes_io_wrapperrr r)r rr/s #""""" %%%%%%FFFFFFFF,,,,,,>>>>>/>>>>>r