Skip to content

checkpointsqlite==1.0.3

Choose a tag to compare

langgraph-checkpoint-sqlite 1.0.3

Summary of Changes

  • Fixed connection handling in SqliteSaver.from_conn_string method by properly closing SQLite connections (#1589)
  • Improved thread safety for both SqliteSaver and AsyncSqliteSaver with more consistent lock acquisition (#1589)

Detailed Changes

langgraph.checkpoint.sqlite.SqliteSaver

  • Enhanced from_conn_string method to properly close SQLite connections using closing() context manager
  • Improved thread safety in cursor method by acquiring a lock before database operations
  • Removed redundant lock acquisition in put and put_writes methods since locks are now managed by the cursor method they call

langgraph.checkpoint.sqlite.aio.AsyncSqliteSaver

  • Enhanced thread safety across multiple async methods by consistently acquiring locks:
    • Added lock acquisition in aget_tuple method
    • Added lock acquisition in alist method
    • Added lock acquisition in aput method
    • Added lock acquisition in aput_writes method