Skip to main content

Module route

Module route 

Source
Expand description

Build spikard_core::RouteMetadata from a scythe AnalyzedQuery.

Structs§

SqlRoute
One spikard route plus the SQL command and HTTP semantics needed to wire it up. Returned as a single value so callers don’t lose the join between the route’s identity (path/method/handler name) and the query metadata that produced it.

Enums§

RouteBuildError

Functions§

bin_param_locations
Decide where each AnalyzedParam is sourced from, falling back from explicit @http_param overrides to inference rules:
route_from_query
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.