Bolt.Sips v2.0.5 Bolt.Sips.Router View Source

This "driver" works in tandem with Neo4j's Causal Clustering feature by directing read and write behaviour to appropriate cluster members

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_connection(role, prefix \\ :direct)

View Source
Link to this function

merge_connections_maps(current_connections, new_connections, prefix \\ :default)

View Source
merge_connections_maps(any(), any(), any()) :: any()
Link to this function

start_connections(opts, routing_table)

View Source

start a new (DB)Connection process, supervised registered under a name following this convention:

  • "role@hostname:port", the role, hostname and the port are collected from the user's configuration: opts. The role parameter is ignored when the routing_table parameter represents a neo4j map containing the definition for a neo4j cluster! It defaults to: :direct, when not specified!
Link to this function

start_link(init_args)

View Source
start_link(Keyword.t()) :: :ignore | {:error, Keyword.t()} | {:ok, pid()}
Link to this function

terminate_connections(role, prefix \\ :default)

View Source