Skip to main content

sql_preview

Function sql_preview 

Source
pub fn sql_preview(sql: &str) -> String
Expand description

Bounded single-line preview of a SQL statement for error and warning text.

Leading trivia is dropped, internal whitespace runs collapse to one space, and the result is truncated to 60 characters followed by ....