LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    Chat LangChain

    What can I help with?

    Enter to send·Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpoint.sqlite_deltaDELTA_STAGE1_SQL
    Attribute●Since v3.1

    DELTA_STAGE1_SQL

    Copy
    DELTA_STAGE1_SQL = 'WITH RECURSIVE ancestors(
      checkpoint_id,
      parent_checkpoint_id,
      type,
      checkpoint) AS (SELECT checkpoint_id,
      parent_checkpoint_id,
      type,
      checkpoint FROM checkpoints WHERE thread_id = ? AND checkpoint_ns = ? AND checkpoint_id = ? UNION ALL SELECT c.checkpoint_id,
      c.parent_checkpoint_id,
      c.type,
      c.checkpoint FROM ancestors a CROSS JOIN checkpoints c ON c.checkpoint_id = a.parent_checkpoint_id WHERE c.thread_id = ? AND c.checkpoint_ns = ?
    ) SELECT checkpoint_id, type, checkpoint FROM ancestors'
    View source on GitHub