PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
sqlalchemy
/
orm
/
__pycache__
� @��N" #� �N � 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: dFd1�Z; e:e!d2� � Z<d3� Z=d4� Z> e:ed5� � Z? e:ed6� � Z@d7� ZAd8� ZB e7jC � � fd9�ZD e:ed:� � Z e:e d;� � ZE e:ed<� � ZF e8jG d=d>�?� � d@� � � ZHdA� ZIejJ jK ZJejJ jL ZMejN jK ZNejO jK ZOejP jK ZPejQ jK ZQejR jK ZRejS jK ZSejT jK ZTejU jL ZUejV jK ZVejW jL ZWejX jK ZXejY jL ZYejZ jK ZZej[ jK Z[ej\ jK Z\ej] jK Z]ej^ jK Z^dB� Z_dC� Z` e:edD� � ZadE� Zb eb ec� � � � d0S )Gz� 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 � � |� dd� � |� dd� � |� dd� � t dd| 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(). � autoflushF� autocommitT�expire_on_commit�bind� )� setdefaultr$ )r8 �kwargss �k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/sqlalchemy/orm/__init__.py�create_sessionr= ? s` � �>