Add sync support for the AsyncPostgresStore (#2673)

This commit is contained in:
William FH
2024-12-09 07:12:52 -08:00
committed by GitHub
parent b37c9d8a01
commit 3f1bdb9ebf
4 changed files with 250 additions and 6 deletions
@@ -155,9 +155,6 @@ class AsyncPostgresStore(AsyncBatchedBaseStore, BasePostgresStore[_ainternal.Con
return results
def batch(self, ops: Iterable[Op]) -> list[Result]:
return asyncio.run_coroutine_threadsafe(self.abatch(ops), self.loop).result()
@classmethod
@asynccontextmanager
async def from_conn_string(