# get_connection

> **Function** in `langgraph.checkpoint.postgres`

📖 [View in docs](https://reference.langchain.com/python/langgraph.checkpoint.postgres/_internal/get_connection)

## Signature

```python
get_connection(
    conn: Conn,
) -> Iterator[Connection[DictRow]]
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/checkpoint-postgres/langgraph/checkpoint/postgres/_internal.py#L13)