(feat) Add retry package #2336

Open
datbeohbbh wants to merge 1 commits from datbeohbbh/xorm:retry-helper into main
Contributor

Hi!
I would like to add retry package.
When working with distributed databases like TiDB, CockroachDB, YDB, client can get an transient error due to network, services unavailable, ...
With retry helper package, XORM engine can evaluate an error and decide to retry operation/transaction or not.

Hi! I would like to add `retry` package. When working with distributed databases like TiDB, CockroachDB, YDB, client can get an transient error due to network, services unavailable, ... With `retry` helper package, XORM engine can evaluate an error and decide to retry operation/transaction or not.
datbeohbbh added 1 commit 2023-09-27 15:02:57 +00:00
(feat) add retry package
Some checks failed
test cockroach / test cockroach (pull_request) Has been cancelled
test mariadb / test mariadb (pull_request) Has been cancelled
test mssql / test mssql (pull_request) Has been cancelled
test mysql / test mysql (pull_request) Has been cancelled
test mysql8 / test mysql8 (pull_request) Has been cancelled
test postgres / test postgres (pull_request) Has been cancelled
test sqlite / unit test & test sqlite (pull_request) Has been cancelled
test tidb / test tidb (pull_request) Has been cancelled
d7ef1d5115
datbeohbbh requested review from lunny 2023-09-27 15:43:01 +00:00
Author
Contributor

@lunny can you help me to review this PR, please?

@lunny can you help me to review this PR, please?
lunny added the
kind
enhancement
label 2023-10-25 07:42:27 +00:00
lunny closed this pull request 2023-10-27 07:29:46 +00:00
lunny reopened this pull request 2023-10-27 07:39:55 +00:00
lunny changed target branch from master to main 2023-10-27 07:40:03 +00:00
lunny added this to the 2.0.0 milestone 2023-10-27 07:40:12 +00:00
Some checks failed
test cockroach / test cockroach (pull_request) Has been cancelled
Required
Details
test mariadb / test mariadb (pull_request) Has been cancelled
Required
Details
test mssql / test mssql (pull_request) Has been cancelled
Required
Details
test mysql / test mysql (pull_request) Has been cancelled
Required
Details
test mysql8 / test mysql8 (pull_request) Has been cancelled
Required
Details
test postgres / test postgres (pull_request) Has been cancelled
Required
Details
test sqlite / unit test & test sqlite (pull_request) Has been cancelled
Required
Details
test tidb / test tidb (pull_request) Has been cancelled
Required
Details
This pull request has changes conflicting with the target branch.
  • engine.go
  • interface.go

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u retry-helper:datbeohbbh-retry-helper
git checkout datbeohbbh-retry-helper
Sign in to join this conversation.
No description provided.