File: //usr/lib/python3/dist-packages/django/db/backends/__pycache__/ddl_references.cpython-310.pyc
o
�a� � @ s� d Z ddlmZ G dd� d�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�Z G dd� de�Z
G dd� de�ZdS )z~
Helpers to manipulate deferred DDL statements that might need to be adjusted or
discarded within when executing a migration.
� )�deepcopyc @ �@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dS )� Referencez0Base class that defines the reference interface.c C � dS )zU
Return whether or not this instance references the specified table.
F� ��self�tabler r �C/usr/lib/python3/dist-packages/django/db/backends/ddl_references.py�references_table � zReference.references_tablec C r )zV
Return whether or not this instance references the specified column.
Fr �r r �columnr r r
�references_column r zReference.references_columnc C r )zI
Rename all references to the old_name to the new_table.
Nr �r � old_table� new_tabler r r
�rename_table_references r z!Reference.rename_table_referencesc C r )zL
Rename all references to the old_column to the new_column.
Nr �r r �
old_column�
new_columnr r r
�rename_column_references r z"Reference.rename_column_referencesc C s d| j jt| �f S )Nz<%s %r>)� __class__�__name__�str�r r r r
�__repr__# � zReference.__repr__c C s t d��)Nz>Subclasses must define how they should be converted to string.)�NotImplementedErrorr r r r
�__str__&