o
    C©ÌhÁ  ã                   @  sR   d Z ddlmZ ddlmZmZmZ ddlmZ dd	d
„Z	edee
ef d�ZdS )zAConstants, helpers, and types shared across all database classes.é    )Úannotations)ÚAnyÚMappingÚTypeVar©ÚInvalidNameÚnameÚstrÚreturnÚNonec                 C  s.   | st dƒ‚dD ]}|| v rt d| ƒ‚qdS )z"Check if a database name is valid.z(database name cannot be the empty string)ú Ú.ú$ú/ú\ú ú"z.database names cannot contain the character %rNr   )r   Úinvalid_char© r   úf/var/www/html/Moveonwheels/move_on_wheels/venv/lib/python3.10/site-packages/pymongo/database_shared.pyÚ_check_name   s   ÿÿr   Ú_CodecDocumentType)ÚboundN)r   r	   r
   r   )Ú__doc__Ú
__future__r   Útypingr   r   r   Úpymongo.errorsr   r   r	   r   r   r   r   r   Ú<module>   s   

