+ 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)SessionShardedSessionShardedQueryc L e Zd Z fdZd 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)selfargskwargs __class__s s/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/sqlalchemy/ext/horizontal_shard.pyr zShardedQuery.__init__ sI *lD!!*D;F;;;,1!\7 c <