ó
i4Vdc           @   s6  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	 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   BaseDatabaseWrapper(   t   BaseDatabaseClient(   t   BaseDatabaseCreation(   t   BaseDatabaseIntrospection(   t   BaseDatabaseOperations(   t   BaseDatabaseValidation(   t   DummyDatabaseFeaturesc          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(    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyt   complain   s    c          O   s   d  S(   N(    (   R   R	   (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyt   ignore   s    t   DatabaseErrorc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyR      s   t   IntegrityErrorc           B   s   e  Z RS(    (   R   R   (    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyR   "   s   t   DatabaseOperationsc           B   s   e  Z e Z RS(    (   R   R   R
   t
   quote_name(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyR   &   s   t   DatabaseClientc           B   s   e  Z e Z RS(    (   R   R   R
   t   runshell(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/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(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/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(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyR   3   s
   t   DatabaseWrapperc           B   sV   e  Z i  Z e Z e Z e Z e Z e Z	 e Z
 e Z e Z e Z d    Z d   Z RS(   c         O   sw   t  t |   j | |   t |   |  _ t |   |  _ t |   |  _ t	 |   |  _
 t |   |  _ t |   |  _ d  S(   N(   t   superR   t   __init__R   t   featuresR   t   opsR   t   clientR   t   creationR   t   introspectionR   t
   validation(   t   selfR   R	   (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyR   K   s    c         C   s   t  S(   N(   t   True(   R&   (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyt	   is_usableU   s    (   R   R   t	   operatorsR
   t   _cursort   ensure_connectiont   _commitR   t	   _rollbackt   _closet
   _savepointt   _savepoint_committ   _savepoint_rollbackt   _set_autocommitR   R(   (    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyR   ;   s   	
N(   t   __doc__t   django.core.exceptionsR    t   django.db.backends.base.baseR   t   django.db.backends.base.clientR   t    django.db.backends.base.creationR   t%   django.db.backends.base.introspectionR   t"   django.db.backends.base.operationsR   t"   django.db.backends.base.validationR   t!   django.db.backends.dummy.featuresR   R
   R   t	   ExceptionR   R   R   R   R   R   R   (    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/dummy/base.pyt   <module>   s"   		