From 0e9c52ae353a9bf8f4f613e533744a8b7f95fc84 Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Wed, 6 Aug 2025 11:50:20 +0200 Subject: [PATCH] Docs: note `IsRetryable` is not applicable to auto-commit transactions --- neo4j/error.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo4j/error.go b/neo4j/error.go index 31c318ed..50ddf1ce 100644 --- a/neo4j/error.go +++ b/neo4j/error.go @@ -29,6 +29,8 @@ import ( // it triggered. This API is meant for use in scenarios where users want to // implement their own retry mechanism. // A similar logic is used by the driver for transaction functions. +// +// NOTE: This does not apply when running auto-commit transactions (Session.Run/SessionWithContext.Run) func IsRetryable(err error) bool { if err == nil { return false