Skip to content

Commit

Permalink
Backwards compat exports
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Nov 25, 2024
1 parent 625b530 commit a13e657
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
from langgraph.checkpoint.postgres.base import BasePostgresSaver
from langgraph.checkpoint.serde.base import SerializerProtocol

Conn = _internal.Conn # For backward compatibility


class PostgresSaver(BasePostgresSaver):
lock: threading.Lock
Expand Down
5 changes: 5 additions & 0 deletions libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
from langgraph.checkpoint.postgres.base import BasePostgresSaver
from langgraph.checkpoint.serde.base import SerializerProtocol

Conn = _ainternal.Conn # For backward compatibility


class AsyncPostgresSaver(BasePostgresSaver):
lock: asyncio.Lock
Expand Down Expand Up @@ -457,3 +459,6 @@ def put_writes(
return asyncio.run_coroutine_threadsafe(
self.aput_writes(config, writes, task_id), self.loop
).result()


__all__ = ["AsyncPostgresSaver", "Conn"]

0 comments on commit a13e657

Please sign in to comment.