pub fn validate_sql_identifier(
value: &str,
field: &str,
path: &str,
) -> Result<(), ValidationError>Expand description
Validates that value is a safe SQL identifier.
Accepts [A-Za-z_][A-Za-z0-9_]* with an optional single schema dot
(e.g. "v_user" or "public.v_user"). Rejects anything that could be
SQL injection or cause a runtime syntax error.
§Arguments
value: The string to validate (e.g."v_user"or"public.v_user")field: The TOML/decorator field name ("sql_source","function_name")path: Human-readable location for the error ("Query.users","Mutation.createPost")
§Errors
Returns a ValidationError if value is empty or does not match the safe
identifier pattern.