"""
PostgreSQL Metrics Database Service — Barrel Re-export

Split into:
- metrics_db_core.py     — Pool, feedback, metrics, relevance
- metrics_db_schema.py   — Table initialization (DDL)
- metrics_db_zeugnis.py  — Zeugnis source/document/stats operations

All public names are re-exported here for backward compatibility.
"""

# Schema: table initialization
from .db_schema import init_metrics_tables  # noqa: F401

# Core: pool, feedback, search logs, metrics, relevance
from .db_core import (  # noqa: F401
    DATABASE_URL,
    get_pool,
    store_feedback,
    log_search,
    log_upload,
    calculate_metrics,
    get_recent_feedback,
    get_upload_history,
    store_relevance_judgment,
    calculate_precision_recall,
)

# Zeugnis operations
from .db_zeugnis import (  # noqa: F401
    get_zeugnis_sources,
    upsert_zeugnis_source,
    get_zeugnis_documents,
    get_zeugnis_stats,
    log_zeugnis_event,
)
