ʼnN d Z ddlmZmZmZ ddlmZ ddlmZm Z ddl mZ ddlm Z dZ G d d Z G d d Z G d d Z G d d Zd Z G d deee ZdS )z8Contains implementations of database retrieveing objects )join LazyMixin hex_to_bin) force_text) BadObjectAmbiguousObjectName)chain)reduce) ObjectDBR ObjectDBW FileDBBase CompoundDB CachingDBc 6 e Zd ZdZd Zd Zd Zd Zd Zd Z dS ) r zkDefines an interface for object database lookup. Objects are identified either by their 20 byte bin shac | j S N)has_objselfshas _/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/gitdb/db/base.py__contains__zObjectDBR.__contains__ s | c t d )z Whether the object identified by the given 20 bytes binary sha is contained in the database :return: True if the object identified by the given 20 bytes binary sha is contained in the databaseTo be implemented in subclassNotImplementedErrorr s r has_objectzObjectDBR.has_object" s ""ABBBr c t d )zW :return: OInfo instance :param sha: bytes binary sha :raise BadObject:r r r s r infozObjectDBR.info+ ""ABBBr c t d )z[:return: OStream instance :param sha: 20 bytes binary sha :raise BadObject:r r r s r streamzObjectDBR.stream1 r! r c t )z+:return: amount of objects in this databaser r s r sizezObjectDBR.size7 !###r c t )zGReturn iterator yielding 20 byte shas for all objects in this data baser r% s r sha_iterzObjectDBR.sha_iter; r' r N) __name__ __module____qualname____doc__r r r r# r&