관리-도구
편집 파일: oracle.cpython-37.opt-1.pyc
B �M!V � @ s� d dl mZ ddlmZ ddlmZmZmZmZm Z m Z mZmZm Z G dd� de�Zeed�dd � �Zee d�d d� �Zee d�dd � �Zeed�dd� �Zeed�dd� �Zdd� Zdd� ZdS )� )�compiles� )�DefaultImpl) �alter_table� AddColumn� ColumnName�format_column_name�ColumnNullable�format_server_default� ColumnDefault�format_type� ColumnTypec sH e Zd ZdZdZdZdZ� fdd�Z� fdd�Zd d � Z dd� Z � ZS ) � OracleImpl�oracleF�/� c s( t t| �j||� | j�d| j�| _d S )NZoracle_batch_separator)�superr �__init__Zcontext_opts�get�batch_separator)�self�arg�kw)� __class__� �C/opt/alt/python37/lib/python3.7/site-packages/alembic/ddl/oracle.pyr s zOracleImpl.__init__c s4 t t| �j|f|�|�}| jr0| jr0| �| j� |S )N)r r �_execZas_sqlr Z static_output)r Z construct�argsr �result)r r r r s zOracleImpl._execc C s | � d� d S )NzSET TRANSACTION READ WRITE)r )r r r r � emit_begin s zOracleImpl.emit_beginc C s | � d� d S )NZCOMMIT)r )r r r r �emit_commit s zOracleImpl.emit_commit)�__name__� __module__�__qualname__Z__dialect__Ztransactional_ddlr Zcommand_terminatorr r r r � __classcell__r r )r r r s r r c K s$ dt || j| j�t|| jf|�f S )Nz%s %s)r � table_name�schema� add_column�column)�element�compilerr r r r �visit_add_column"