관리-도구
편집 파일: batch.cpython-38.pyc
U 0?�f?i � @ s d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d d l mZ d d l mZ d dl m Z d dl mZ d d l mZ d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ ddlm%Z% ddlm&Z& dd lm'Z' dd!lm(Z( dd"lm)Z) dd#lm*Z* e�r�d d$lm+Z+ d d%l,m-Z- d d&l.m/Z/ d d'l.m0Z0 d d(l1m2Z2 d d)lm3Z3 d d*l4m5Z5 dd+l6m7Z7 G d,d-� d-�Z8G d.d/� d/�Z9d0S )1� )�annotations)�Any)�Dict)�List)�Optional)�Tuple)� TYPE_CHECKING)�Union)�CheckConstraint)�Column)�ForeignKeyConstraint)�Index)�MetaData)�PrimaryKeyConstraint��schema)�Table)�types)�SchemaEventTarget)�OrderedDict)�topological� )�exc)�_columns_for_constraint)�_copy)�_copy_expression)�_ensure_scope_for_ddl)�_fk_is_self_referential)�_idx_table_bound_expressions)�_insert_inline)�_is_type_bound)�_remove_column_from_collection)�_resolve_for_variant)�_select)�constraint_name_defined)�constraint_name_string)�Literal)�Dialect)�ColumnClause)�quoted_name)�Function)� Constraint)� TypeEngine)�DefaultImplc @ s� e Zd Zdd� Zedd�dd��Zedd�dd ��Zd d�dd�Zd d�dd�Zd d�dd�Z d d�dd�Z d d�dd�Zdd d�dd�Zdd d�dd�Z dd� Zddd d �d!d"�Zddd d �d#d$�Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/S )0�BatchOperationsImplc C s� || _ || _|| _|dkr"td��|| _|| _|| _t|�| _|| _ t| �| _ | j �dt| j � dd��� | j d �d|jjf� | | _|| _g | _d S )N)�auto�always�neverz4recreate may be one of 'auto', 'always', or 'never'.Z listeners� Zcolumn_reflect)� operations� table_namer � ValueError�recreate� copy_from� table_args�dict�table_kwargs�reflect_args�reflect_kwargs� setdefault�list�get�append�implZautogen_column_reflect�naming_convention�partial_reordering�batch)�selfr3 r4 r r6 r7 r8 r: r; r<