pub fn unlink_memory_entity(
conn: &Connection,
memory_id: i64,
entity_id: i64,
) -> Result<u64, AppError>Expand description
GAP-SG-52: removes the curated memory_entities binding between a memory
and an entity. Unlike prune-ner (which targets an entity across every
memory), this surgically unlinks a single (memory_id, entity_id) pair —
covering bindings created via remember --graph-stdin. Returns the number
of junction rows removed (0 or 1).
§Errors
Returns AppError::Database when the underlying SQLite operation fails.