Class: Neo4j::Driver::Bolt::Protocol::V4

Inherits:
Base
  • Object
show all
Defined in:
lib/neo4j/driver/bolt/protocol/v4.rb

Overview

Bolt 4.x handler for the pre-4.4 wire form. The driver negotiates it for 4.2 and 4.3 (see ProtocolVersionHandler); 4.4's wire additions (imp_user, the ROUTE map form) live in the V44 subclass, which every 5.x handler descends from.

Direct Known Subclasses

V43

Instance Attribute Summary

Attributes inherited from Base

#connection, #version

Instance Method Summary collapse

Methods inherited from Base

#build_begin, #build_discard, #build_hello_message, #build_logon_message, #build_pull, #build_run, #build_telemetry, #configure_packer, #customize_hydration, #enforce_impersonation_support!, #hello_extra, #initialize, #notification_config_extra, #pack_uuid, #supports_impersonation?, #supports_notification_filtering?, #supports_re_auth?, #supports_telemetry?, #unpack_uuid

Constructor Details

This class inherits a constructor from Neo4j::Driver::Bolt::Protocol::Base

Instance Method Details

#build_route(routing_context, bookmarks, database, _imp_user) ⇒ Object

ROUTE's third field is the target database as a bare string (or null for the home db). 4.4 changed it to a {db, imp_user} map — V44 overrides this; imp_user is unused here.



17
18
19
# File 'lib/neo4j/driver/bolt/protocol/v4.rb', line 17

def build_route(routing_context, bookmarks, database, _imp_user)
  Message.route(routing_context, bookmarks, database)
end

#supports_multiple_databases?Boolean

Returns:

  • (Boolean)


12
# File 'lib/neo4j/driver/bolt/protocol/v4.rb', line 12

def supports_multiple_databases? = true