Skip to main content

flowscope_core/linter/
helpers.rs

1//! Shared lint helper utilities.
2
3use sqlparser::ast::*;
4
5/// Returns true if the expression is a NULL literal.
6pub fn is_null_expr(expr: &Expr) -> bool {
7    matches!(
8        expr,
9        Expr::Value(ValueWithSpan {
10            value: Value::Null,
11            ..
12        })
13    )
14}