Skip to main content

segments

Function segments 

Source
pub fn segments(sql: &str) -> Vec<SqlSegment<'_>>
Expand description

Segment a SQL string into classified SqlSegments.

The entire input is covered exactly once (no bytes are skipped). Adjacent Text bytes are collected into a single segment.