CECTC / dbpack

A db proxy for distributed transaction, read write splitting and sharding! Support any language! It can be deployed as a sidecar in a pod.
https://cectc.github.io/dbpack-doc/#/en-us/
Apache License 2.0
356 stars 46 forks source link

feat: support xa protocol #261

Closed dk-lockdown closed 2 years ago

dk-lockdown commented 2 years ago

ref: https://github.com/cectc/dbpack/issues/259

Ⅰ. Describe what this PR did

support:

XA {START|BEGIN} xid 

XA END xid

XA PREPARE xid

XA COMMIT xid

XA ROLLBACK xid

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

codecov-commenter commented 2 years ago

Codecov Report

Merging #261 (80af84e) into dev (97c5e18) will decrease coverage by 0.13%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##              dev     #261      +/-   ##
==========================================
- Coverage   43.38%   43.25%   -0.14%     
==========================================
  Files          82       82              
  Lines        9979    10009      +30     
==========================================
  Hits         4329     4329              
- Misses       5196     5226      +30     
  Partials      454      454              
Impacted Files Coverage Δ
pkg/executor/read_write_splitting.go 42.59% <0.00%> (-3.18%) :arrow_down:
pkg/executor/single_db.go 44.62% <0.00%> (-3.92%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more