+# WARNING: this file is auto-generated by 'async_to_sync.py'
+# from the original file '_pipeline_async.py'
+# DO NOT CHANGE! Change the original file instead.
"""
-commands pipeline management
+Psycopg Pipeline object implementation.
"""
# Copyright (C) 2021 The Psycopg Team
class Pipeline(BasePipeline):
- """Handler for connection in pipeline mode."""
+ """Handler for (sync) connection in pipeline mode."""
__module__ = "psycopg"
_conn: Connection[Any]
"""
-commands pipeline management
+Psycopg AsyncPipeline object implementation.
"""
# Copyright (C) 2021 The Psycopg Team
class AsyncPipeline(BasePipeline):
- """Handler for async connection in pipeline mode."""
+ """Handler for (async) connection in pipeline mode."""
__module__ = "psycopg"
_conn: AsyncConnection[Any]
super().__init__(conn)
async def sync(self) -> None:
+ """Sync the pipeline, send any pending command and receive and process
+ all available results.
+ """
try:
async with self._conn.lock:
await self._conn.wait(self._sync_gen())
psycopg/psycopg/_copy_async.py
psycopg/psycopg/connection_async.py
psycopg/psycopg/cursor_async.py
+ psycopg/psycopg/_pipeline_async.py
psycopg/psycopg/_server_cursor_async.py
psycopg_pool/psycopg_pool/null_pool_async.py
psycopg_pool/psycopg_pool/pool_async.py