From e1d01c6cb78751dcae492fceedb3452ef800f685 Mon Sep 17 00:00:00 2001 From: Ilia Sergunin Date: Thu, 4 Jan 2024 21:36:52 +0400 Subject: [PATCH] 1. fixed docs link --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index add2b90..c783c62 100644 --- a/README.md +++ b/README.md @@ -45,13 +45,13 @@ Compatibility beyond that is not guaranteed. ## Usage **To use multiple transactions from different databases**, you need to set CtxKey in [Settings](trm/settings.go) -by [WithCtxKey](trm/settings/option.go). +by [WithCtxKey](trm/settings/option.go) ([docs](https://pkg.go.dev/github.com/avito-tech/go-transaction-manager/trm/v2)). -**For nested transactions with different transaction managers**, you need to use [ChainedMW](trm/manager/chain.go) ([docs](https://pkg.go.dev/github.com/avito-tech/go-transaction-manager/trm/manager)). +**For nested transactions with different transaction managers**, you need to use [ChainedMW](trm/manager/chain.go) ([docs](https://pkg.go.dev/github.com/avito-tech/go-transaction-manager/trm/v2/manager)). **To skip a transaction rollback due to an error, use [ErrSkip](manager.go#L20) or [Skippable](manager.go#L24)** -### Explanation of the approach ([English](https://www.youtube.com/watch?v=aRsea6FFAyA), Russian [article](https://habr.com/ru/companies/avito/articles/727168/), [Youtube](https://www.youtube.com/watch?v=fcdckM5sUxA)) +### Explanation of the approach [English](https://www.youtube.com/watch?v=aRsea6FFAyA), Russian [article](https://habr.com/ru/companies/avito/articles/727168/) and [youtube](https://www.youtube.com/watch?v=fcdckM5sUxA). ### Examples with an ideal *repository* and nested transactions.