MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / create_gitql_environment

Function create_gitql_environment

src/gitql/mod.rs:17–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15pub(crate) mod values;
16
17pub(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
39pub(crate) fn validate_git_repositories(
40 repositories: &Vec<String>,

Callers 2

mainFunction · 0.85
launch_gitql_replFunction · 0.85

Calls 11

tables_fields_namesFunction · 0.85
tables_fields_typesFunction · 0.85
gitql_std_signaturesFunction · 0.85
gitql_std_functionsFunction · 0.85
aggregation_functionsFunction · 0.85
window_functionsFunction · 0.85
with_window_functionsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…