29 lines
603 B
Python
29 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",
|
||
|
|
]
|