()
| 15 | pub(crate) mod values; |
| 16 | |
| 17 | pub(crate) fn create_gitql_environment() -> Environment { |
| 18 | let schema = Schema { |
| 19 | tables_fields_names: tables_fields_names().to_owned(), |
| 20 | tables_fields_types: tables_fields_types().to_owned(), |
| 21 | }; |
| 22 | |
| 23 | let std_signatures = functions::gitql_std_signatures(); |
| 24 | let std_functions = functions::gitql_std_functions(); |
| 25 | |
| 26 | let aggregation_signatures = aggregation_function_signatures(); |
| 27 | let aggregation_functions = aggregation_functions(); |
| 28 | |
| 29 | let window_signatures = window_function_signatures(); |
| 30 | let window_function = window_functions(); |
| 31 | |
| 32 | let mut env = Environment::new(schema); |
| 33 | env.with_standard_functions(&std_signatures, std_functions); |
| 34 | env.with_aggregation_functions(&aggregation_signatures, aggregation_functions); |
| 35 | env.with_window_functions(&window_signatures, window_function); |
| 36 | env |
| 37 | } |
| 38 | |
| 39 | pub(crate) fn validate_git_repositories( |
| 40 | repositories: &Vec<String>, |
no test coverage detected
searching dependent graphs…