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:
commit
291d664051
5 changed files with 686 additions and 0 deletions
28
__init__.py
Normal file
28
__init__.py
Normal 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",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue