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

Class QueryInfo

demo/__init__.py:1–21  ·  view source on GitHub ↗

This class contains the needed data about a query

Source from the content-addressed store, hash-verified

1class QueryInfo(object):
2 """
3 This class contains the needed data about a query
4 """
5
6 def __init__(self, query=None, description=None, max_run_time_ms=None, expected_result=None, reversible=True):
7 """
8 QueryInfo contructor
9
10 :param query: The query itself (string)
11 :param description: The information about what the query does (string)
12 :param max_run_time_ms: The max run time of the query in milliseconds (float)
13 :param expected_result: The expected result of the query (list of lists, where the first list
14 is the columns names, and the rest is the result)
15 """
16
17 self.query = query
18 self.description = description
19 self.expected_result = expected_result
20 self.max_run_time_ms = max_run_time_ms
21 self.reversible = reversible
22

Calls

no outgoing calls