Query Runner Types

Generic supporting types for the query runner.

class graphdatascience.query_runner.termination_flag.TerminationFlag

Abstract flag used to signal cancellation of a running GDS operation.

class graphdatascience.query_runner.query_runner.QueryRunner
__init__()
classmethod __new__(*args, **kwargs)
class graphdatascience.query_runner.query_mode.QueryMode

The mode in which a Cypher query is run.

READ = 'READ'
WRITE = 'WRITE'
__new__(value)
neo4j_access_mode() → str
Return type:

str

neo4j_routing() → RoutingControl
Return type:

RoutingControl

classmethod of(mode: QueryMode | str) → QueryMode

Normalize a QueryMode or a plain string into a QueryMode.

Parameters:

mode (QueryMode | str)

Return type:

QueryMode

class graphdatascience.retry_utils.retry_config.RetryConfigV2

Retry configuration which can be serialized/deserialized.

classmethod __new__(*args, **kwargs)