PostgreSQL message storage API with asyncpg connection pooling and full-text search. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
603 B
Python
28 lines
603 B
Python
"""
|
|
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",
|
|
]
|