Get the SQL file path
(query_dir: &Path, query: usize)
| 111 | |
| 112 | /// Get the SQL file path |
| 113 | pub fn get_query_path(query_dir: &Path, query: usize) -> PathBuf { |
| 114 | let mut query_path = query_dir.to_path_buf(); |
| 115 | query_path.push(format!("q{query}.sql")); |
| 116 | query_path |
| 117 | } |
| 118 | |
| 119 | /// Get the SQL statement from the specified query file |
| 120 | pub fn get_query_sql(query_path: &Path) -> Result<Option<String>> { |