관리-도구
편집 파일: __init__.cpython-37.pyc
B ��4]F% � @ st d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl mZ dd l mZ dd l m Z ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddl#m$Z$ ddl%m&Z& ddl%m'Z' ddl%m(Z( dd l%m)Z) dd!l%m*Z* dd"l%m+Z+ dd#lm,Z, dd$l-m.Z. dd%l-m/Z/ dd&l-m0Z0 dd'l-m1Z1 dd(l-m2Z2 dd)l-m3Z3 dd*l-m4Z4 dd+l-m5Z5 d,d-lm6Z7 d,d.lm-Z8 d,d/l9m:Z: dQd1d2�Z;e:e!d3�Z<d4d5� Z=d6d7� Z>e:ed8�Z?e:ed9�Z@d:d;� ZAd<d=� ZBd>d?� ZCe:ed@�Ze:e dA�ZDe:edB�ZEe8jFdCdDdE�dFdG� �ZGdHdI� ZHejIjJZIejIjKZLejMjJZMejNjJZNejOjJZOejPjJZPejQjJZQejRjJZRejSjJZSejTjKZTejUjJZUejVjKZVejWjJZWejXjKZXejYjJZYejZjJZZej[jJZ[ej\jJZ\ej]jJZ]dJdK� Z^dLdM� Z_e:edN�Z`dOdP� Zaeaeb� � d0S )Rz� Functional constructs for ORM configuration. See the SQLAlchemy object relational tutorial and mapper configuration documentation for an overview of how this module is used. � )�exc)�mapper)�strategy_options)�AttributeExtension)�MapperExtension)�SessionExtension)�ComparableProperty)�CompositeProperty)�SynonymProperty)�EXT_CONTINUE)�EXT_SKIP)�EXT_STOP)�PropComparator)�_mapper_registry)�class_mapper)�configure_mappers)�Mapper)� reconstructor)� validates)�ColumnProperty)�AliasOption)�Bundle)�Query)�foreign)�RelationshipProperty)�remote)�scoped_session)�close_all_sessions)�make_transient)�make_transient_to_detached)�object_session)�Session)�sessionmaker)�Load)�aliased)�join)� object_mapper)� outerjoin)�polymorphic_union)�was_deleted)�with_parent)�with_polymorphic� )�sql)�util)�public_factoryNc K s6 |� dd� |� dd� |� dd� tf d| i|��S )a� Create a new :class:`.Session` with no automation enabled by default. This function is used primarily for testing. The usual route to :class:`.Session` creation is via its constructor or the :func:`.sessionmaker` function. :param bind: optional, a single Connectable to use for all database access in the created :class:`~sqlalchemy.orm.session.Session`. :param \*\*kwargs: optional, passed through to the :class:`.Session` constructor. :returns: an :class:`~sqlalchemy.orm.session.Session` instance The defaults of create_session() are the opposite of that of :func:`sessionmaker`; ``autoflush`` and ``expire_on_commit`` are False, ``autocommit`` is True. In this sense the session acts more like the "classic" SQLAlchemy 0.3 session with these. Usage:: >>> from sqlalchemy.orm import create_session >>> session = create_session() It is recommended to use :func:`sessionmaker` instead of create_session(). Z autoflushFZ autocommitTZexpire_on_commit�bind)� setdefaultr! )r0 �kwargs� r3 �J/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/__init__.py�create_session? s r5 z.orm.relationshipc O s t | |�S )z#A synonym for :func:`relationship`.)�relationship)�arg�kwr3 r3 r4 �relationg s r9 c K s d|d<