Skip to content

Add robust export/import support with tested SQLite implementation #178

@dhyaneesh

Description

@dhyaneesh

Memori currently lacks a dedicated, well‑tested export/import pipeline for moving memory data between databases and for backing up/restoring a single database. I’d like to add a first version of this feature, focused on SQLite, along with tests and documentation so users can reliably export/import their memories.
Problem / Motivation

  • There is no high‑level API to:
  • Export chat history and memories from a Memori database into portable formats (JSON/SQL/SQLite/CSV).
  • Import that data into another database (e.g. a fresh SQLite instance or a different backend).

This makes it difficult to:

  • Back up/restore Memori data.
  • Migrate users between environments or database backends.
  • Test data portability end‑to‑end.
  • Existing tests failed when trying to prototype this because:
  • SQLAlchemyDatabaseManager did not expose a get_session() helper needed by streaming export/import logic and some tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions