checkpoint-postgres: vbump & add a note to readme (#1295)

This commit is contained in:
Vadym Barda
2024-08-09 09:42:53 -04:00
committed by GitHub
parent 659586947d
commit d98eec6e91
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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
@@ -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)]
```
```
+1 -1
View File
@@ -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"