pub async fn render_structured_fetch_sql( pool: &PgPool, plan: &StructuredGatewayFetchPlan, ) -> Result<String, String>
Loads relation metadata and compiles SQL for a parsed structured fetch plan.