diff --git a/neo4j/notifications/notifications.go b/neo4j/notifications/notifications.go index 144ee8cd..37fd4a86 100644 --- a/neo4j/notifications/notifications.go +++ b/neo4j/notifications/notifications.go @@ -28,6 +28,10 @@ const ( Performance NotificationCategory = "PERFORMANCE" Deprecation NotificationCategory = "DEPRECATION" Generic NotificationCategory = "GENERIC" + // Security requires server version 5.14 or newer. + Security NotificationCategory = "SECURITY" + // Topology requires server version 5.14 or newer. + Topology NotificationCategory = "TOPOLOGY" ) type NotificationDisabledCategories struct { diff --git a/neo4j/resultsummary.go b/neo4j/resultsummary.go index 2b8f7853..e39d4d1c 100644 --- a/neo4j/resultsummary.go +++ b/neo4j/resultsummary.go @@ -266,6 +266,8 @@ const ( Performance NotificationCategory = "PERFORMANCE" Deprecation NotificationCategory = "DEPRECATION" Generic NotificationCategory = "GENERIC" + Security NotificationCategory = "SECURITY" + Topology NotificationCategory = "TOPOLOGY" UnknownCategory NotificationCategory = "UNKNOWN" ) @@ -565,6 +567,10 @@ func (n *notification) Category() NotificationCategory { return Performance case "DEPRECATION": return Deprecation + case "SECURITY": + return Security + case "TOPOLOGY": + return Topology case "GENERIC": return Generic default: