
    hh	                     6    S r SSKJr  SSKJr   " S S\5      rg)zDatabase schema editor.    )Any)DatabaseSchemaEditorc                   <    \ rS rSrSrS\S\4S jrS\S\4S jrSrg)	r   '   zTThis class is responsible for emitting schema-changing statements to the
databases.
valuereturnc                 Z   U R                   R                  5         [        U[        5      (       a  UR	                  SS5      nU R                   R                   R
                  R                  U5      n[        U[        5      (       a%  [        U[        5      (       a  UR                  5       nU$ )zQuote value.%z%%)	
connectionensure_connection
isinstancestrreplace	converterescapebytesdecode)selfr   quoteds      W/var/www/fran/franai/venv/lib/python3.13/site-packages/mysql/connector/django/schema.pyquote_value DatabaseSchemaEditor.quote_value,   sx    ))+eS!!MM#t,E++55<<UCeS!!j&?&?]]_F    c                     U$ )zpImplement the required abstract method.

MySQL has requires_literal_defaults=False, therefore return the value.
 )r   r   s     r   prepare_default$DatabaseSchemaEditor.prepare_default6   s	    
 r   r   N)	__name__
__module____qualname____firstlineno____doc__r   r   r   __static_attributes__r   r   r   r   r   '   s-      S S r   r   N)r"   typingr   django.db.backends.mysql.schemar   MySQLDatabaseSchemaEditorr   r   r   <module>r'      s   >  
4 r   