File: //proc/thread-self/root/var/opt/nydus/ops/mysql/connector/django/__pycache__/schema.cpython-39.pyc
a
�,�hh � @ s0 d Z ddlmZ ddlmZ G dd� de�ZdS )zDatabase schema editor.� )�Any)�DatabaseSchemaEditorc @ s0 e Zd ZdZeed�dd�Zeed�dd�ZdS )r z\This class is responsible for emitting schema-changing statements to the
databases.
)�value�returnc C sP | j �� t|t�r |�dd�}| j j j�|�}t|t�rLt|t�rL|�� }|S )zQuote value.�%z%%) �
connectionZensure_connection�
isinstance�str�replace� converter�escape�bytes�decode)�selfr �quoted� r �P/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/connector/django/schema.py�quote_value, s
z DatabaseSchemaEditor.quote_valuec C s |S )z�Implement the required abstract method.
MySQL has requires_literal_defaults=False, therefore return the value.
r )r r r r r �prepare_default6 s z$DatabaseSchemaEditor.prepare_defaultN)�__name__�
__module__�__qualname__�__doc__r r r r r r r r '