domo-iot / libp2p-rust-dht

MIT License
1 stars 1 forks source link

Use sqlx for the cache backend #13

Open lu-zero opened 1 year ago

lu-zero commented 1 year ago

It is uses sqlite as example, other db can be used.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 47.70% and project coverage change: -8.18 :warning:

Comparison is base (5e271d4) 79.75% compared to head (4c5ba9d) 71.57%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #13 +/- ## ========================================== - Coverage 79.75% 71.57% -8.18% ========================================== Files 10 12 +2 Lines 2045 1942 -103 ========================================== - Hits 1631 1390 -241 - Misses 414 552 +138 ``` | [Impacted Files](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot) | Coverage Δ | | |---|---|---| | [dht-config/src/lib.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-ZGh0LWNvbmZpZy9zcmMvbGliLnJz) | `0.00% <0.00%> (ø)` | | | [src/lib.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-c3JjL2xpYi5ycw==) | `100.00% <ø> (ø)` | | | [src/main.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-c3JjL21haW4ucnM=) | `1.01% <0.00%> (+0.23%)` | :arrow_up: | | [dht-cache/src/domopersistentstorage.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-ZGh0LWNhY2hlL3NyYy9kb21vcGVyc2lzdGVudHN0b3JhZ2UucnM=) | `73.27% <73.27%> (ø)` | | | [dht-cache/src/domocache.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-ZGh0LWNhY2hlL3NyYy9kb21vY2FjaGUucnM=) | `45.03% <73.33%> (ø)` | | | [dht-cache/src/domolibp2p.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-ZGh0LWNhY2hlL3NyYy9kb21vbGlicDJwLnJz) | `90.47% <93.33%> (ø)` | | | [dht-cache/src/utils.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-ZGh0LWNhY2hlL3NyYy91dGlscy5ycw==) | `100.00% <100.00%> (ø)` | | | [src/domobroker.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-c3JjL2RvbW9icm9rZXIucnM=) | `93.80% <100.00%> (+1.63%)` | :arrow_up: | | [src/webapimanager.rs](https://app.codecov.io/gh/domo-iot/libp2p-rust-dht/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domo-iot#diff-c3JjL3dlYmFwaW1hbmFnZXIucnM=) | `97.70% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.