U
    ‰d…  ã                   @   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ƒ‚d S )Nz{settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.r   ©ÚargsÚkwargs© r   úA/tmp/pip-unpacked-wheel-7vj2equ7/django/db/backends/dummy/base.pyÚcomplain   s    ÿr   c                  O   s   d S )Nr   r
   r   r   r   Úignore   s    r   c                   @   s   e Zd ZeZdS )ÚDatabaseOperationsN)Ú__name__Ú
__module__Ú__qualname__r   Z
quote_namer   r   r   r   r      s   r   c                   @   s   e Zd ZeZdS )ÚDatabaseClientN)r   r   r   r   Zrunshellr   r   r   r   r   #   s   r   c                   @   s   e Zd ZeZeZdS )ÚDatabaseCreationN)r   r   r   r   Zcreate_test_dbZ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   Zget_table_listZget_table_descriptionZget_relationsZ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   s    zDatabaseWrapper.is_usableN)r   r   r   Ú	operatorsr   Z_cursorZensure_connectionZ_commitr   Z	_rollbackÚ_closeZ
_savepointZ_savepoint_commitZ_savepoint_rollbackZ_set_autocommitr   Zclient_classr   Zcreation_classr	   Zfeatures_classr   Zintrospection_classr   Z	ops_classr   r   r   r   r   r   3   s    r   N)Ú__doc__Zdjango.core.exceptionsr   Zdjango.db.backends.base.baser   Zdjango.db.backends.base.clientr   Z django.db.backends.base.creationr   Z%django.db.backends.base.introspectionr   Z"django.db.backends.base.operationsr   Z!django.db.backends.dummy.featuresr	   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   	