sage-api / src /profiles /__init__.py
hiasgnpsadgd's picture
Deploy current MIMIC-only SAGE backend
de0f30b verified
Raw
History Blame Contribute Delete
704 Bytes
"""Data-source profiles: DB-specific constraints, separated from general logic.
See ``docs/stage2_portability_design.md``. Author a new database target by
adding ``src/configs/datasets/<name>.yaml`` and selecting it via
``SAGE_DATASOURCE_PROFILE=<name>`` — no pipeline code changes.
"""
from .loader import (
ACTIVE_PROFILE_ENV,
DEFAULT_PROFILE_NAME,
active_profile_name,
get_active_profile,
load_profile,
)
from .profile import CanonicalView, DataSourceProfile, SourceSpec
__all__ = [
"ACTIVE_PROFILE_ENV",
"CanonicalView",
"DEFAULT_PROFILE_NAME",
"DataSourceProfile",
"SourceSpec",
"active_profile_name",
"get_active_profile",
"load_profile",
]