validate_parameter

Function validate_parameter 

Source
pub fn validate_parameter(value: &str) -> Result<(), ModelError>
Expand description

Validate parameter value to prevent injection through parameters

With the escape-focused approach, parameter validation is minimal since parameters are properly parameterized and escaped by the database driver.

§Arguments

  • value - The parameter value to validate

§Returns

  • Ok(()) if safe, Err(ModelError) if potentially dangerous