1 2 3 4 5 6 7
use super::get_data_dir; use crate::error::Result; use std::path::PathBuf; pub fn schema_path(name: &str) -> Result<PathBuf> { let safe = super::sanitize_table_name::sanitize_table_name(name)?; Ok(PathBuf::from(get_data_dir()).join(format!("{}.schema.json", safe))) }