Class: Neo4j::Driver::Bolt::Protocol::V52

Inherits:
V51 show all
Defined in:
lib/neo4j/driver/bolt/protocol/v52.rb

Overview

Bolt 5.2. Server now honours notification-filtering fields in HELLO (notifications_minimum_severity, notifications_disabled_categories). The driver's NotificationsConfig (a {minimum_severity:, disabled_categories:} hash, or nil) is mapped straight onto those keys here; the outer build_hello_message.compact drops an unset severity while keeping an explicit empty disabled_categories: [] (which the server reads as "re-enable every category").

Direct Known Subclasses

V53

Instance Attribute Summary

Attributes inherited from Base

#connection, #version

Instance Method Summary collapse

Methods inherited from V51

#build_logon_message, #hello_extra, #supports_re_auth?

Methods inherited from V5

#configure_packer, #patch_bolt_extra

Methods inherited from V44

#build_route, #supports_impersonation?

Methods inherited from V43

#hello_extra, #patch_bolt_extra

Methods inherited from V4

#build_route, #supports_multiple_databases?

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, #pack_uuid, #supports_impersonation?, #supports_multiple_databases?, #supports_re_auth?, #supports_telemetry?, #unpack_uuid

Constructor Details

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

Instance Method Details

#notification_config_extra(config) ⇒ Object



18
19
20
21
22
23
# File 'lib/neo4j/driver/bolt/protocol/v52.rb', line 18

def notification_config_extra(config)
  return {} unless config

  { notifications_minimum_severity: config[:minimum_severity],
    notifications_disabled_categories: config[:disabled_categories] }
end

#supports_notification_filtering?Boolean

Returns:

  • (Boolean)


16
# File 'lib/neo4j/driver/bolt/protocol/v52.rb', line 16

def supports_notification_filtering? = true