Skip to content

airframe-jdbc: Refine JDBC connection pool#858

Merged
xerial merged 4 commits intowvlet:masterfrom
xerial:jdbc-interface
Dec 17, 2019
Merged

airframe-jdbc: Refine JDBC connection pool#858
xerial merged 4 commits intowvlet:masterfrom
xerial:jdbc-interface

Conversation

@xerial
Copy link
Copy Markdown
Member

@xerial xerial commented Dec 16, 2019

  • Support generic JDBC connections
  • Support standalone usage without DI
  • Combine config for PostgreSQL, connection pools into DbConfig
  • Update docs

This closes #387

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 16, 2019

Codecov Report

Merging #858 into master will decrease coverage by 0.04%.
The diff coverage is 64.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #858      +/-   ##
==========================================
- Coverage   81.03%   80.98%   -0.05%     
==========================================
  Files         228      229       +1     
  Lines        9004     9028      +24     
  Branches      651      646       -5     
==========================================
+ Hits         7296     7311      +15     
- Misses       1708     1717       +9
Impacted Files Coverage Δ
...ala/wvlet/airframe/jdbc/SQLiteConnectionPool.scala 92.3% <100%> (ø) ⬆️
...rc/main/scala/wvlet/airframe/control/Control.scala 100% <100%> (ø) ⬆️
...ain/scala/wvlet/airframe/jdbc/ConnectionPool.scala 66.66% <40%> (+1.14%) ⬆️
.../src/main/scala/wvlet/airframe/jdbc/DbConfig.scala 50% <48%> (-33.34%) ⬇️
...la/wvlet/airframe/jdbc/ConnectionPoolFactory.scala 71.42% <71.42%> (ø)
...la/wvlet/airframe/jdbc/GenericConnectionPool.scala 63.15% <80%> (ø)
...la/wvlet/airframe/control/MultipleExceptions.scala 66.66% <0%> (+66.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3432fe1...ff2431d. Read the comment docs.

@xerial xerial requested a review from takezoe December 16, 2019 22:41
@xerial xerial mentioned this pull request Dec 16, 2019
66 tasks
Copy link
Copy Markdown
Member

@takezoe takezoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Making components independent from airframe-di as much as possible might be a good habit since we can use them without airframe or with other DI containers.

@xerial xerial merged commit 405e3e0 into wvlet:master Dec 17, 2019
@xerial xerial deleted the jdbc-interface branch December 17, 2019 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

airframe-jdbc needs an example not using DI

2 participants