Home / Function/ sync_store() — langchain Function Reference

sync_store() — langchain Function Reference

Architecture documentation for the sync_store() function in conftest.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0bdc7c6d_e8c2_2bc9_bc0e_8c774e99ae7d["sync_store()"]
  81b9f9df_8601_314e_4fb6_20a115260a63["conftest.py"]
  0bdc7c6d_e8c2_2bc9_bc0e_8c774e99ae7d -->|defined in| 81b9f9df_8601_314e_4fb6_20a115260a63
  style 0bdc7c6d_e8c2_2bc9_bc0e_8c774e99ae7d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/conftest.py lines 98–116

def sync_store(request: pytest.FixtureRequest) -> Iterator[BaseStore | None]:
    store_name = request.param
    if store_name is None:
        yield None
    elif store_name == "in_memory":
        with _store_memory() as store:
            yield store
    elif store_name == "postgres":
        with _store_postgres() as store:
            yield store
    elif store_name == "postgres_pipe":
        with _store_postgres_pipe() as store:
            yield store
    elif store_name == "postgres_pool":
        with _store_postgres_pool() as store:
            yield store
    else:
        msg = f"Unknown store {store_name}"
        raise NotImplementedError(msg)

Domain

Subdomains

Frequently Asked Questions

What does sync_store() do?
sync_store() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/conftest.py.
Where is sync_store() defined?
sync_store() is defined in libs/langchain_v1/tests/unit_tests/agents/conftest.py at line 98.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free