관리-도구
편집 파일: horizontal_shard.cpython-311.pyc
� �܋f�# � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddgZ G d� de� � Z G d � d e � � Z G d� 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 �L � � e Zd Z� fd�Zd� Zd� Zd� Z d� fd� Zd � fd� Z� xZ S ) r c � �� t t | � � j |i |�� | j j | _ | j j | _ d | _ d S �N)�superr �__init__�session� id_chooser� query_chooser� _shard_id)�self�args�kwargs� __class__s ��r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/sqlalchemy/ext/horizontal_shard.pyr zShardedQuery.__init__ sI �� �*��l�D�!�!�*�D�;�F�;�;�;��,�1���!�\�7�������� c �<