use anyhow::{anyhow, Result}; // errors if input contains non-alphanumeric characters or underscore // in other worse - valid column names only pub fn check_input(input: &str) -> Result<()> { let valid = input .as_bytes() .iter() .all(|&c| c.is_ascii_alphanumeric() || c == b'_'); match valid { true => Ok(()), false => Err(anyhow!("Invalid Input: {}", input)), } }