MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / as_str

Method as_str

graphlite/src/ast/ast.rs:300–307  ·  view source on GitHub ↗

Get the string representation for queries

(&self)

Source from the content-addressed store, hash-verified

298
299 /// Get the string representation for queries
300 pub fn as_str(&self) -> &'static str {
301 match self {
302 PathType::Walk => "WALK",
303 PathType::Trail => "TRAIL",
304 PathType::SimplePath => "SIMPLE PATH",
305 PathType::AcyclicPath => "ACYCLIC PATH",
306 }
307 }
308}
309
310/// Path pattern: [identifier =] [path_type] node (edge node)* with optional path type constraint

Callers 15

handle_gqlFunction · 0.45
from_strMethod · 0.45
get_nodesMethod · 0.45
coerce_value_to_typeMethod · 0.45
validate_value_typesMethod · 0.45
from_strMethod · 0.45
get_string_parameterMethod · 0.45
execute_with_clauseMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_unwind_remove_basicFunction · 0.36