vapor / postgres-nio

🐘 Non-blocking, event-driven Swift client for PostgreSQL.
https://api.vapor.codes/postgresnio/documentation/postgresnio/
MIT License
322 stars 75 forks source link

Add support for multiple streams #442

Closed fabianfett closed 10 months ago

fabianfett commented 10 months ago

Actually add support for connections with more than one stream.

codecov-commenter commented 10 months ago

Codecov Report

Merging #442 (3c4173a) into main (dc94503) will increase coverage by 0.21%. The diff coverage is 80.76%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #442 +/- ## ========================================== + Coverage 59.42% 59.64% +0.21% ========================================== Files 124 124 Lines 9820 9889 +69 ========================================== + Hits 5836 5898 +62 - Misses 3984 3991 +7 ``` | [Files](https://app.codecov.io/gh/vapor/postgres-nio/pull/442?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Δ | | |---|---|---| | [Sources/ConnectionPoolModule/ConnectionPool.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/442?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Db25uZWN0aW9uUG9vbE1vZHVsZS9Db25uZWN0aW9uUG9vbC5zd2lmdA==) | `92.82% <100.00%> (+0.82%)` | :arrow_up: | | [...nPoolModule/PoolStateMachine+ConnectionGroup.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/442?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Db25uZWN0aW9uUG9vbE1vZHVsZS9Qb29sU3RhdGVNYWNoaW5lK0Nvbm5lY3Rpb25Hcm91cC5zd2lmdA==) | `88.52% <82.35%> (+1.06%)` | :arrow_up: | | [...ources/ConnectionPoolModule/PoolStateMachine.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/442?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Db25uZWN0aW9uUG9vbE1vZHVsZS9Qb29sU3RhdGVNYWNoaW5lLnN3aWZ0) | `86.96% <87.09%> (-1.42%)` | :arrow_down: | | [...nPoolModule/PoolStateMachine+ConnectionState.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/442?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Db25uZWN0aW9uUG9vbE1vZHVsZS9Qb29sU3RhdGVNYWNoaW5lK0Nvbm5lY3Rpb25TdGF0ZS5zd2lmdA==) | `84.59% <70.37%> (-0.70%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/vapor/postgres-nio/pull/442/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor)
fabianfett commented 10 months ago

API changes in ConnectionPoolModule.