관리-도구
편집 파일: requirements.cpython-37.pyc
B �M!V� � @ sP d dl mZ ddlmZ ejr,d dlmZ nG dd� de�ZG dd� de�Zd S ) � )�util� )� exclusions)�Requirementsc @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �M/opt/alt/python37/lib/python3.7/site-packages/alembic/testing/requirements.pyr s r c @ s� e Zd Zedd� �Zedd� �Zedd� �Zedd� �Zed d � �Zedd� �Z ed d� �Z edd� �Zedd� �Zedd� �Z edd� �Zedd� �Zedd� �Zedd� �Zedd� �Zedd � �Zd!S )"�SuiteRequirementsc C s t �� S )zXTarget database must support external schemas, and have one named 'test_schema'.)r �open)�selfr r r �schemas s zSuiteRequirements.schemasc C s t �dd� d�S )Nc S s t j S )N)r �sqla_084)�configr r r �<lambda> � z@SuiteRequirements.unique_constraint_reflection.<locals>.<lambda>z$SQLAlchemy 0.8.4 or greater required)r �skip_if)r r r r �unique_constraint_reflection s z.SuiteRequirements.unique_constraint_reflectionc C s t �dd� d�S )Nc S s t j S )N)r �sqla_08)r r r r r r z5SuiteRequirements.foreign_key_match.<locals>.<lambda>z0MATCH for foreign keys added in SQLAlchemy 0.8.0)r �fails_if)r r r r �foreign_key_match s z#SuiteRequirements.foreign_key_matchc C s t �� S )zMTarget database must support check constraints and also enforce them.)r r )r r r r �check_constraints_w_enforcement"