From 88f9ad7a4e92511ffff6c21f82406e54ffd06ad6 Mon Sep 17 00:00:00 2001 From: Brandur Date: Sat, 26 Apr 2025 10:51:38 -0700 Subject: [PATCH] Add docs for `UnwrapTx` Small follow up to #848 to add missing docs for `UnwrapTx`. I wouldn't normally bother, but all the other driver functions are fully documented. --- riverdriver/river_driver_interface.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/riverdriver/river_driver_interface.go b/riverdriver/river_driver_interface.go index 5315b911..6bcc99de 100644 --- a/riverdriver/river_driver_interface.go +++ b/riverdriver/river_driver_interface.go @@ -103,6 +103,10 @@ type Driver[TTx any] interface { // API is not stable. DO NOT USE. UnwrapExecutor(tx TTx) ExecutorTx + // UnwrapTx gets a driver transaction from an executor. This is currently + // only needed for test transaction helpers. + // + // API is not stable. DO NOT USE. UnwrapTx(execTx ExecutorTx) TTx }