LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    Chat LangChain

    What can I help with?

    Enter to send·Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.store.postgresaioAsyncPostgresStorefrom_conn_string
    Method●Since v3.2

    from_conn_string

    Copy
    from_conn_string(
      cls,
      conn_string: str,
      *,
      pipeline: bool = False,
      pool_config: PoolConfig
    View source on GitHub
    |
    None
    =
    None
    ,
    index
    :
    PostgresIndexConfig
    |
    None
    =
    None
    ,
    ttl
    :
    TTLConfig
    |
    None
    =
    None
    )
    ->
    AsyncIterator
    [
    AsyncPostgresStore
    ]

    Parameters

    NameTypeDescription
    conn_string*str

    The Postgres connection info string.

    pipelinebool
    Default:False

    Whether to use AsyncPipeline (only for single connections)

    pool_configPoolConfig | None
    Default:None

    Configuration for the connection pool. If provided, will create a connection pool and use it instead of a single connection. This overrides the pipeline argument.

    indexPostgresIndexConfig | None
    Default:None

    Create a new AsyncPostgresStore instance from a connection string.

    The embedding config.