# get_connection

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

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

## Signature

```python
get_connection(
    conn: Conn,
) -> AsyncIterator[AsyncConnection[DictRow]]
```

---

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