pub fn route_from_query(
query: &AnalyzedQuery,
catalog: &Catalog,
opts: &BuildOptions,
) -> Result<Option<SqlRoute>, RouteBuildError>Expand description
Build a RouteMetadata (as JSON) from one analyzed query. Returns
Ok(None) when the query has no @http directive — those are skipped
silently so SQL files can mix HTTP and non-HTTP queries freely.