Create a new PostgresStore 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
) -> Iterator[PostgresStore]| Name | Type | Description |
|---|---|---|
conn_string* | str | The Postgres connection info string. |
pipeline | bool | Default: Falsewhether to use Pipeline |
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 index configuration for the store. |
ttl | TTLConfig | None | Default: NoneThe TTL configuration for the store. |