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
357 stars 46 forks source link

refactor: refact topology to support sharding db #234

Closed dk-lockdown closed 2 years ago

dk-lockdown commented 2 years ago

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

Ⅰ. Describe what this PR did

Ⅱ. 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 #234 (5a09380) into dev (12c94c4) will increase coverage by 0.05%. The diff coverage is 63.33%.

@@            Coverage Diff             @@
##              dev     #234      +/-   ##
==========================================
+ Coverage   42.82%   42.88%   +0.05%     
==========================================
  Files          82       82              
  Lines        9840     9857      +17     
==========================================
+ Hits         4214     4227      +13     
- Misses       5187     5189       +2     
- Partials      439      441       +2     
Impacted Files Coverage Δ
pkg/topo/topo.go 75.86% <57.69%> (-1.92%) :arrow_down:
pkg/misc/strings.go 90.24% <100.00%> (+0.50%) :arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more