from_conn_string(
cls,
conn_string: str,
) -> Iterator[SqliteSaver]| Name | Type | Description |
|---|---|---|
conn_string* | str | The SQLite connection string. |
Create a new SqliteSaver instance from a connection string.
Examples:
In memory:
with SqliteSaver.from_conn_string(":memory:") as memory:
...
To disk:
with SqliteSaver.from_conn_string("checkpoints.sqlite") as memory:
...