Skip to content

Commit

Permalink
checkpoint-postgres: vbump & add a note to readme (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda authored Aug 9, 2024
1 parent 6595869 commit d98eec6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libs/checkpoint-postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Implementation of LangGraph CheckpointSaver that uses Postgres.
> [!IMPORTANT]
> When using Postgres checkpointers for the first time, make sure to call `.setup()` method on them to create required tables. See example below.
> [!IMPORTANT]
> When manually creating Postgres connections and passing them to `PostgresSaver` or `AsyncPostgresSaver`, make sure to include `autocommit=True` and `row_factory=dict_row` (`from psycopg.rows import dict_row`). See a full example in this [how-to guide](https://langchain-ai.github.io/langgraph/how-tos/persistence_postgres/).
```python
from langgraph.checkpoint.postgres import PostgresSaver

Expand Down Expand Up @@ -95,4 +98,4 @@ async with AsyncPostgresSaver.from_conn_string(DB_URI) as checkpointer:

# list checkpoints
[c async for c in checkpointer.alist(read_config)]
```
```
2 changes: 1 addition & 1 deletion libs/checkpoint-postgres/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-checkpoint-postgres"
version = "1.0.2"
version = "1.0.3"
description = "Library with a Postgres implementation of LangGraph checkpoint saver."
authors = []
license = "MIT"
Expand Down

0 comments on commit d98eec6

Please sign in to comment.