Initial commit: Egregore db service

PostgreSQL message storage API with asyncpg connection pooling and full-text search.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
egregore 2026-02-02 11:37:55 +00:00
commit 291d664051
5 changed files with 686 additions and 0 deletions

28
__init__.py Normal file
View file

@ -0,0 +1,28 @@
"""
Egregore Database - Message storage and retrieval
This module handles all database operations for the chat system.
Currently SQLite, designed for easy migration to PostgreSQL later.
"""
from .messages import (
init_db,
save_message,
save_response_blocks,
get_messages,
get_conversation_history,
search_messages,
MESSAGE_PRIORITIES,
get_priority_for_type,
)
__all__ = [
"init_db",
"save_message",
"save_response_blocks",
"get_messages",
"get_conversation_history",
"search_messages",
"MESSAGE_PRIORITIES",
"get_priority_for_type",
]