MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / execute_graph

Method execute_graph

cassandra/cluster.py:2785–2797  ·  view source on GitHub ↗

Executes a Gremlin query string or GraphStatement synchronously, and returns a ResultSet from this execution. `parameters` is dict of named parameters to bind. The values must be JSON-serializable. `execution_profile`: Selects an execution profile for the r

(self, query, parameters=None, trace=False, execution_profile=EXEC_PROFILE_GRAPH_DEFAULT, execute_as=None)

Source from the content-addressed store, hash-verified

2783 return execute_concurrent_async(self, statements_and_parameters, concurrency, raise_on_first_error, execution_profile)
2784
2785 def execute_graph(self, query, parameters=None, trace=False, execution_profile=EXEC_PROFILE_GRAPH_DEFAULT, execute_as=None):
2786 """
2787 Executes a Gremlin query string or GraphStatement synchronously,
2788 and returns a ResultSet from this execution.
2789
2790 `parameters` is dict of named parameters to bind. The values must be
2791 JSON-serializable.
2792
2793 `execution_profile`: Selects an execution profile for the request.
2794
2795 `execute_as` the user that will be used on the server to execute the request.
2796 """
2797 return self.execute_graph_async(query, parameters, trace, execution_profile, execute_as).result()
2798
2799 def execute_graph_async(self, query, parameters=None, trace=False, execution_profile=EXEC_PROFILE_GRAPH_DEFAULT, execute_as=None):
2800 """

Callers 2

executeMethod · 0.45
submitMethod · 0.45

Calls 2

execute_graph_asyncMethod · 0.95
resultMethod · 0.80

Tested by

no test coverage detected