U
    7h                     @   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   W/var/www/formularioweb/env/lib/python3.8/site-packages/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   	