# get_db_path

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/sessions/get_db_path)

Get path to global database.

The result is cached after the first successful call to avoid repeated
filesystem operations.

## Signature

```python
get_db_path() -> Path
```

## Returns

`Path`

Path to the SQLite database file.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/sessions.py#L271)