()
| 26 | } |
| 27 | |
| 28 | fn tables_fields_names() -> &'static HashMap<&'static str, Vec<&'static str>> { |
| 29 | static HASHMAP: OnceLock<HashMap<&'static str, Vec<&'static str>>> = OnceLock::new(); |
| 30 | HASHMAP.get_or_init(|| { |
| 31 | let mut map = HashMap::new(); |
| 32 | map.insert( |
| 33 | "files", |
| 34 | vec!["path", "parent", "extension", "is_dir", "is_file", "size"], |
| 35 | ); |
| 36 | map |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | pub fn create_fileql_environment() -> Environment { |
| 41 | let schema = Schema { |
no outgoing calls
no test coverage detected