graflo.db.cypher¶
Shared Cypher query fragments (no drivers; safe string builders only).
cypher_map_key(name)
¶
Return a backtick-quoted map-key / property name for Cypher patterns.
Strips embedded backticks from name so callers cannot break out of quotes.
Source code in graflo/db/cypher/escape.py
cypher_string_literal(value)
¶
rel_merge_props_map_from_row_index(prop_names, *, row_index=2)
¶
Build `k`: row[n]['k'], ... for MERGE relationship properties.
Matches batches shaped as row = [source_doc, target_doc, props] (Neo4j,
FalkorDB-style row[2]).
Source code in graflo/db/cypher/rel_merge.py
rel_merge_props_map_from_row_props(prop_names, *, props_expr='row.props')
¶
Build `k`: row.props['k'], ... (Memgraph-style batch rows).