Files
momentum-system/research/schema.py
momentum devandClaude Opus 4.8 007cd95c79 Baseline before Postgres migration (WS0)
Snapshot before the DuckDB->PostgreSQL migration. data/, archive/, the 232MB
rebuild zip, the Windows .venv, and .env are excluded via .gitignore.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 23:39:29 -04:00

15 lines
391 B
Python

"""Research database schema — reuses the core market schema."""
from __future__ import annotations
from pathlib import Path
from storage.db import get_connection
DEFAULT_RESEARCH_DB = "data/research/market.duckdb"
def get_research_connection(db_path: str | Path = DEFAULT_RESEARCH_DB):
"""Open (and initialize) the research market database."""
return get_connection(db_path)