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

Method define_global

crates/gitql-core/src/environment.rs:154–156  ·  view source on GitHub ↗

Define in the global scope

(&mut self, str: String, data_type: Box<dyn DataType>)

Source from the content-addressed store, hash-verified

152
153 /// Define in the global scope
154 pub fn define_global(&mut self, str: String, data_type: Box<dyn DataType>) {
155 self.globals_types.insert(str, data_type);
156 }
157
158 /// Returns true if local or global scopes has contains field
159 pub fn contains(&self, str: &String) -> bool {

Callers 2

parse_set_queryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected