MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _run_query

Method _run_query

tests/flow/test_cache.py:274–281  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

272
273 # _run_query is expected to be issued by multiple threads
274 def _run_query(i):
275 #random param name
276 param_name = 'p_' + str(i)
277 q = f"MATCH (n) WHERE n.v = ${param_name} RETURN count(n)"
278 params = {param_name : '/'}
279 g = Graph(self.env.getConnection(), 'cache_eviction')
280 count = g.query(q, params).result_set[0][0]
281 self.env.assertEqual(count, 10001)
282
283 tasks = []
284 loop = asyncio.get_event_loop()

Callers

nothing calls this directly

Calls 3

strFunction · 0.85
GraphClass · 0.85
queryMethod · 0.45

Tested by

no test coverage detected