mnemo-pgwire 0.4.3

PostgreSQL wire protocol server for Mnemo — accept SQL queries over pgwire
Documentation

PostgreSQL wire protocol server for Mnemo.

Exposes Mnemo's memory database through the PostgreSQL wire protocol, allowing SQL-native clients (psql, pgAdmin, any PostgreSQL driver) to query memories using familiar SQL syntax.

Supported SQL subset

  • SELECT * FROM memories WHERE agent_id = '...' LIMIT n
  • INSERT INTO memories (content, importance, ...) VALUES (...)
  • DELETE FROM memories WHERE id = '...'

Architecture

The server accepts TCP connections and speaks the PostgreSQL wire protocol (startup, query, parse/bind/execute extended protocol). Queries are parsed and mapped to Mnemo engine operations:

  • SELECTengine.recall()
  • INSERTengine.remember()
  • DELETEengine.forget()