from typing import Any from ..connection import connect from .ensure_field_bounds_schema import ensure_field_bounds_schema def list_definitions(slug: str) -> list[dict[str, Any]]: ensure_field_bounds_schema(slug) conn = connect(slug) rows = conn.execute("SELECT * FROM _definitions ORDER BY id").fetchall() conn.close() return [dict(r) for r in rows]