o
    ô<âg…  ã                   @   s¼   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ d	d
„ Zdd„ ZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ de
ƒZG dd„ deƒZdS )zË
Dummy database backend for Django.

Django uses this if the database ENGINE setting is empty (None or empty string).

Each of these API functions, except connection.close(), raise
ImproperlyConfigured.
é    ©ÚImproperlyConfigured)ÚBaseDatabaseWrapper)ÚBaseDatabaseClient)ÚBaseDatabaseCreation)ÚBaseDatabaseIntrospection)ÚBaseDatabaseOperations)ÚDummyDatabaseFeaturesc                  O   s   t dƒ‚)Nz{settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.r   ©ÚargsÚkwargs© r   úP/var/www/html/venv/lib/python3.10/site-packages/django/db/backends/dummy/base.pyÚcomplain   s   ÿr   c                  O   s   d S )Nr   r
   r   r   r   Úignore   ó   r   c                   @   ó   e Zd ZeZdS )ÚDatabaseOperationsN)Ú__name__Ú
__module__Ú__qualname__r   Ú
quote_namer   r   r   r   r      ó    r   c                   @   r   )ÚDatabaseClientN)r   r   r   r   Úrunshellr   r   r   r   r   #   r   r   c                   @   s   e Zd ZeZeZdS )ÚDatabaseCreationN)r   r   r   r   Úcreate_test_dbÚdestroy_test_dbr   r   r   r   r   '   s    r   c                   @   s   e Zd ZeZeZeZeZdS )ÚDatabaseIntrospectionN)r   r   r   r   Úget_table_listÚget_table_descriptionÚget_relationsÚget_indexesr   r   r   r   r   ,   s
    r   c                   @   sP   e Zd Zi ZeZeZeZeZ	eZ
eZeZeZeZeZeZeZeZeZdd„ ZdS )ÚDatabaseWrapperc                 C   s   dS )NTr   )Úselfr   r   r   Ú	is_usableI   r   zDatabaseWrapper.is_usableN)r   r   r   Ú	operatorsr   Ú_cursorÚensure_connectionÚ_commitr   Ú	_rollbackÚ_closeÚ
_savepointÚ_savepoint_commitÚ_savepoint_rollbackÚ_set_autocommitr   Úclient_classr   Úcreation_classr	   Úfeatures_classr   Úintrospection_classr   Ú	ops_classr%   r   r   r   r   r#   3   s"    r#   N)Ú__doc__Údjango.core.exceptionsr   Údjango.db.backends.base.baser   Údjango.db.backends.base.clientr   Ú django.db.backends.base.creationr   Ú%django.db.backends.base.introspectionr   Ú"django.db.backends.base.operationsr   Ú!django.db.backends.dummy.featuresr	   r   r   r   r   r   r   r#   r   r   r   r   Ú<module>   s    	