Skip to main content

preprocess

Function preprocess 

Source
pub fn preprocess(sql: &str) -> Result<Option<PreprocessedSql>, SqlError>
Expand description

Pre-process a SQL string, rewriting NodeDB-specific syntax.

Returns Ok(None) if no rewriting was needed. Temporal clause parse errors bubble up as SqlError::Parse so they surface to the caller identically to sqlparser errors.