# 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/d4149cc1f5384364d1a21092b4c2f582a6e7af8f/libs/checkpoint-postgres/langgraph/checkpoint/postgres/_internal.py#L13)