node-oracledb
node-oracledb copied to clipboard
Does getConnection() return a new javascript object?
When working with connection pools, just wanted to know if getConnection() is going to give the "same object"?
Just to clarify the picture...lets assume an express app which uses oracledb and it has about 4 pools. Lets say one api call a getConnection() was called and we've obtained the object. Lets say that with this connection object is specific to the 2nd connection in the connection pool. That api call did some crud operation and released it back into the pool. Some other api call checks out the the same 2nd connection from the pool...will those two objects have the same object reference?