PromptGarageUI / db_client.py
smlflg's picture
Initial public upload from Projekte/PromptGarageUI
6156d2f verified
Raw History Blame Contribute Delete
646 Bytes
#!/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