PostgresCheckpointer
constructor(dataSource: DataSource, serializer: StateSerializer<State>, table: String = DEFAULT_TABLE, maxHistory: Int = Int.MAX_VALUE, createTable: Boolean = true)
Parameters
dataSource
the database. It has to be PostgreSQL, version 12 or later.
serializer
converts the graph state to and from a string.
table
the name of the table, letters, digits and _, not starting with a digit, with a schema in front or not, such as agents.telar_checkpoints.
maxHistory
how many checkpoints a thread keeps, counted from the latest, for CompiledGraph.history and fork. The default keeps all of them; 1 keeps only the latest.
createTable
whether the checkpointer creates table when it does not exist. false for an app whose migrations create it.