Skip to main content

validate_single_variant

Function validate_single_variant 

Source
fn validate_single_variant(
    name: &str,
    database: &str,
    schema: &str,
    path: &Path,
    located_statements: Vec<LocatedStatement>,
) -> Result<DatabaseObject, ValidationErrors>
Expand description

Validate a single variant’s statements fully and produce a compiled object.

This runs all existing validation (classify statements, check name/fqn, indexes, grants, comments, clusters, etc.). Each statement carries its byte offset from the source file so that validation errors can point to the exact location.