
    df                     J    d dl mZ d dlmZ d dlmZmZ  G d de          ZdS )    )BaseCommand)	sql_flush)DEFAULT_DB_ALIASconnectionsc                   ,     e Zd ZdZdZ fdZd Z xZS )CommandzReturns 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                     t                                          |           |                    dt          d           d S )Nz
--databasezNNominates a database to print the SQL for. Defaults to the "default" database.)defaulthelp)superadd_argumentsadd_argumentr   )selfparser	__class__s     dD:\Python Project\djangoTemplates\venv\Lib\site-packages\django/core/management/commands/sqlflush.pyr   zCommand.add_arguments   sM    f%%%$	 	 	
 	
 	
 	
 	
    c                     t          | j        t          |d                            }|s&|d         dk    r| j                            d           d                    |          S )Ndatabase	verbosity   zNo tables found.
)r   styler   stderrwritejoin)r   optionssql_statementss      r   handlezCommand.handle   s]    "4:{7:;N/OPP 	2'+"6!";";K0111yy(((r   )__name__
__module____qualname__r   output_transactionr   r   __classcell__)r   s   @r   r   r      sZ        	Q 	
 	
 	
 	
 	
 	
) ) ) ) ) ) )r   r   N)django.core.management.baser   django.core.management.sqlr   	django.dbr   r   r    r   r   <module>r)      su    3 3 3 3 3 3 0 0 0 0 0 0 3 3 3 3 3 3 3 3) ) ) ) )k ) ) ) ) )r   