
vÅÏ^Ä  ã               @   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 Gd d „  d e ƒ Z Gd d „  d e ƒ Z Gd d „  d e ƒ Z Gd d „  d e
 ƒ Z Gd 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   ú?/tmp/pip-build-8lau8j11/django/django/db/backends/dummy/base.pyÚcomplain   s    r   c              O   s   d  S)Nr   )r	   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 e Z d S)ÚDatabaseIntrospectionN)	r   r   r   r   Zget_table_listZget_table_descriptionZget_relationsZget_indexesZget_key_columnsr   r   r   r   r   *   s
   r   c               @   sv   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_usableH   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   2   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   