î
ªÍ XQ  ã               @   s`   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z m Z Gd d „  d e ƒ Z	 d S)é    )Úunicode_literals)ÚBaseCommand)Ú	sql_flush)ÚDEFAULT_DB_ALIASÚconnectionsc                   s:   e  Z d  Z d Z d Z ‡  f d d †  Z d d „  Z ‡  S)ÚCommandzŒReturns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed.Tc                s3   t  t |  ƒ j | ƒ | j d d t d d ƒd  S)Nz
--databaseÚdefaultÚhelpzNNominates a database to print the SQL for. Defaults to the "default" database.)Úsuperr   Úadd_argumentsÚadd_argumentr   )ÚselfÚparser)Ú	__class__© úV/home/ubuntu/projects/ifolica/build/django/django/core/management/commands/sqlflush.pyr      s    zCommand.add_argumentsc             K   s'   d j  t |  j t | d d d ƒƒ S)NÚ
ZdatabaseZonly_djangoT)Újoinr   Ústyler   )r   Úoptionsr   r   r   Úhandle   s    zCommand.handle)Ú__name__Ú
__module__Ú__qualname__r	   Zoutput_transactionr   r   r   r   )r   r   r      s   r   N)
Ú
__future__r   Zdjango.core.management.baser   Zdjango.core.management.sqlr   Z	django.dbr   r   r   r   r   r   r   Ú<module>   s   