File size: 646 Bytes
6156d2f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/usr/bin/env python3
"""Database client - imports from existing PromptGarage."""
import os
import sys
# Add PromptGarage to path
PROMPT_GARAGE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(PROMPT_GARAGE_DIR, "PromptGarage"))
# Re-export all functions from the original db module
from db import (
get_db,
get_prompt,
list_prompts,
search_fts,
toggle_star,
set_rating,
add_prompt,
update_prompt,
delete_prompt,
get_stats,
increment_use,
list_top_used,
list_untagged,
)
# Keep DB_PATH accessible
from db import DB_PATH as ORIGINAL_DB_PATH
|