()
| 38 | } |
| 39 | |
| 40 | pub fn create_fileql_environment() -> Environment { |
| 41 | let schema = Schema { |
| 42 | tables_fields_names: tables_fields_names().to_owned(), |
| 43 | tables_fields_types: tables_fields_types().to_owned(), |
| 44 | }; |
| 45 | |
| 46 | let std_signatures = functions::fileql_std_signatures(); |
| 47 | let std_functions = functions::fileql_std_functions(); |
| 48 | |
| 49 | let aggregation_signatures = aggregation_function_signatures(); |
| 50 | let aggregation_functions = aggregation_functions(); |
| 51 | |
| 52 | let window_signatures = window_function_signatures(); |
| 53 | let window_functions = window_functions(); |
| 54 | |
| 55 | let mut env = Environment::new(schema); |
| 56 | env.with_standard_functions(&std_signatures, std_functions); |
| 57 | env.with_aggregation_functions(&aggregation_signatures, aggregation_functions); |
| 58 | env.with_window_functions(&window_signatures, window_functions); |
| 59 | |
| 60 | env |
| 61 | } |
no test coverage detected