ó
ų¢TQc           @   są   d  Z  d d l m Z d d l Td d l m Z d   Z d   Z d e f d     YZ	 d	 e	 f d
     YZ
 d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d S(   sĢ   
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(), raises
ImproperlyConfigured.
i’’’’(   t   ImproperlyConfigured(   t   *(   t   BaseDatabaseCreationc          O   s   t  d   d  S(   Ns{   settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.(   R    (   t   argst   kwargs(    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyt   complain   s    c          O   s   d  S(   N(    (   R   R   (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyt   ignore   s    t   DatabaseErrorc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR      s   t   IntegrityErrorc           B   s   e  Z RS(    (   R   R	   (    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR
      s   t   DatabaseOperationsc           B   s   e  Z e Z RS(    (   R   R	   R   t
   quote_name(    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR      s   t   DatabaseClientc           B   s   e  Z e Z RS(    (   R   R	   R   t   runshell(    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR      s   t   DatabaseCreationc           B   s   e  Z e Z e Z RS(    (   R   R	   R   t   create_test_dbt   destroy_test_db(    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR   "   s   t   DatabaseIntrospectionc           B   s&   e  Z e Z e Z e Z e Z e Z RS(    (   R   R	   R   t   get_table_listt   get_table_descriptiont   get_relationst   get_indexest   get_key_columns(    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR   &   s
   t   DatabaseWrapperc           B   se   e  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 d    Z RS(   c         O   sw   t  t |   j | |   t |   |  _ t |   |  _ t |   |  _ t	 |   |  _
 t |   |  _ t |   |  _ d  S(   N(   t   superR   t   __init__t   BaseDatabaseFeaturest   featuresR   t   opsR   t   clientR   t   creationR   t   introspectiont   BaseDatabaseValidationt
   validation(   t   selfR   R   (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR   A   s    (   R   R	   t	   operatorsR   t   _commitR   t	   _rollbackt   enter_transaction_managementt   leave_transaction_managementt	   set_dirtyt	   set_cleant   commit_unless_managedt   rollback_unless_managedt	   savepointt   savepoint_committ   savepoint_rollbackt   closet   cursorR   (    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyR   -   s   N(   t   __doc__t   django.core.exceptionsR    t   django.db.backendst   django.db.backends.creationR   R   R   t	   ExceptionR   R
   t   BaseDatabaseOperationsR   t   BaseDatabaseClientR   R   t   BaseDatabaseIntrospectionR   t   BaseDatabaseWrapperR   (    (    (    s6   ../Django//lib/python/django/db/backends/dummy/base.pyt   <module>   s   
		