Closed cemremengu closed 6 years ago
This PR ~no longer introduces a breaking change. It~ preserves and extends the previous API by exposing getConnection()
method and pool
object as individual properties. However, if you are using pool directly in your code, you will need to do oracle.pool
After spamming you gazillion of times (hopefully you unfollowed this PR), I think I am done 😄
I just haven't had time to review it again. I'll get to it.
This PR adds support for multiple pool definitions.
Changes
name
property for pool labeling (note that this is notpoolAlias
). Labeled clients can be accessed viaoracle.<dbname>.getConnection()
oracledb
instance is exposed asoracle.db
so that you can access constants and other options such as constants likeoracle.db.OBJECT
getConnection
is preserved but the pool instance is now accessed viaoracle.pool