Skip to content

Implement Memory struct with SQLite CRUD #5

Closed

Description

@ajianaz

Summary

Implement the core Memory struct backed by SQLite (rusqlite). CRUD operations: remember, get, list, forget, update.

Acceptance Criteria

  • Uteke::open(path) creates ~/.uteke/ directory if not exists
  • SQLite database created with proper schema (id, content, tags, timestamp, embedding_id)
  • remember(content, tags) inserts record, returns Memory ID
  • get(id) returns single memory by UUID
  • list() returns all memories, sorted by recency
  • list_by_tag(tag) filters by tag
  • forget(id) soft-deletes a memory
  • update(id, content) updates content and re-embeds
  • WAL mode enabled for concurrent read performance
  • Unit tests for all CRUD operations (>90% coverage on this module)

Deliverable

Working SQLite-backed memory store with full CRUD and tests.
Estimated: 12h

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:coretype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions