o
    øÇ[h©  ã                   @   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   ú„/home/ubuntu/experiments/live_experiments/Pythonexperiments/Otree/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   Z
quote_namer   r   r   r   r      ó    r   c                   @   r   )ÚDatabaseClientN)r   r   r   r   Zrunshellr   r   r   r   r   #   r   r   c                   @   s   e Zd ZeZeZeZdS )ÚDatabaseCreationN)r   r   r   r   Zcreate_test_dbZdestroy_test_dbZserialize_db_to_stringr   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_usableJ   r   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   4   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    	