We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308c5a5 commit aa0aa39Copy full SHA for aa0aa39
psqlpy_piccolo/engine.py
@@ -547,6 +547,9 @@ async def close_connection_pool(self) -> None:
547
548
async def get_new_connection(self) -> Connection:
549
"""Returns a new connection - doesn't retrieve it from the pool."""
550
+ if self.pool:
551
+ return await self.pool.connection()
552
+
553
config = dict(self.config)
554
return await (
555
ConnectionPool(
0 commit comments