Module spans

Source

Structs§

Location
Represents a location, determined by a line and a column number, in the original SQL query.
Span
Represents an interval of characters in the original SQL query.
Spans
A collection of Span, meant to be used as a field of entities whose location in the original SQL query is desired to be tracked. Sometimes an entity can have multiple spans. e.g. if you want to track the position of the column a that comes from SELECT 1 AS a UNION ALL SELECT 2 AS a you’ll need two spans.