관리-도구
편집 파일: batch.cpython-37.pyc
B �M!Vc+ � @ s� d dl mZmZmZmZmZmZmZ d dl mZ d dl m Z d dlm Z ddlmZ ddlmZmZ G dd � d e�ZG d d� de�ZdS ) � )�Table�MetaData�Index�select�Column�ForeignKeyConstraint�cast)�types)�schema)�OrderedDict� )�util)�_columns_for_constraint�_is_type_boundc @ s� e Zd Zdd� Zedd� �Zedd� �Zdd� Zd d � Zdd� Z d d� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� ZdS ) �BatchOperationsImplc C sh t jstd��|| _|| _|| _|dkr0td��|| _|| _|| _ t |�| _|| _| | _ | | _g | _d S )Nz.batch mode requires SQLAlchemy 0.8 or greater.)�auto�always�neverz4recreate may be one of 'auto', 'always', or 'never'.)r Zsqla_08�NotImplementedError� operations� table_namer � ValueError�recreate� copy_from� table_args�dict�table_kwargs�reflect_args�reflect_kwargs�naming_convention�batch)�selfr r r r r r r r r r � r"