fromConnString(connString: string, options: Partial<PostgresSaverOptions>): PostgresSaver| Name | Type | Description |
|---|---|---|
connString* | string | The connection string to connect to the Postgres database. |
options | Partial<PostgresSaverOptions> | Optional configuration object. |
const connString = "postgresql://user:password@localhost:5432/db";
const checkpointer = PostgresSaver.fromConnString(connString, {
schema: "custom_schema" // defaults to "public"
});
await checkpointer.setup();Creates a new instance of PostgresSaver from a connection string.