LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classicmemoryentitySQLiteEntityStore
    Class●Since v1.0Deprecated

    SQLiteEntityStore

    SQLite-backed Entity store with safe query construction.

    Copy
    SQLiteEntityStore(
      self,
      session_id: str = 'default',
      db_file: str = 'entities.db',
      table_name: str = 'memory_store',
      *args: Any = (),
      **kwargs: Any = {}
    )

    Bases

    BaseEntityStore

    Parameters

    NameTypeDescription
    session_idstr
    Default:'default'

    Unique identifier for the session.

    db_filestr
    Default:'entities.db'

    Path to the SQLite database file.

    table_namestr
    Default:'memory_store'

    Name of the table to store entities.

    *argsAny
    Default:()

    Additional positional arguments.

    **kwargsAny
    Default:{}

    Additional keyword arguments.

    Constructors

    constructor
    __init__
    NameType
    session_idstr
    db_filestr
    table_namestr

    Attributes

    attribute
    session_id: str
    attribute
    table_name: str
    attribute
    conn: Any
    attribute
    model_config
    attribute
    full_table_name: str

    Returns the full table name with session ID.

    Methods

    method
    get

    Retrieves a value, safely quoting the table name.

    method
    set

    Inserts or replaces a value, safely quoting the table name.

    method
    delete

    Deletes a key-value pair, safely quoting the table name.

    method
    exists

    Checks for the existence of a key, safely quoting the table name.

    method
    clear
    View source on GitHub