Create a new AsyncPostgresStore instance from a connection string.
from_conn_string(
cls,
conn_string: str,
*,
pipeline: bool = False,
pool_config: PoolConfig | None = None,
index: PostgresIndexConfig | None = None,
ttl: TTLConfig | None = None
) -> AsyncIterator[AsyncPostgresStore]| Name | Type | Description |
|---|---|---|
conn_string* | str | The Postgres connection info string. |
pipeline | bool | Default: FalseWhether to use AsyncPipeline (only for single connections) |
pool_config | PoolConfig | None | Default: NoneConfiguration for the connection pool.
If provided, will create a connection pool and use it instead of a single connection.
This overrides the |
index | PostgresIndexConfig | None | Default: NoneThe embedding config. |