The module consists of two layers:
ShardProxy class that just manages connections.
ops module that implements helper classes for parallelism and result processing.
Operations
Select bunch of IDs:
UserRow = Row[tuple[User]]
class SelectManyUsers(RunOnKeysOperation[UserRow]):
async def process(
self, conn: AsyncConnection, keys: list[UUID]
) -> ResultRows[UserRow]:
stmt = select(User).where(User.id.in_(keys))
res = await conn.execute(stmt)
return res.all()
users = await SelectManyUsers().run(proxy)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shardproxy-1.0.0.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters