Note that there are some explanatory texts on larger screens.

plurals
  1. USDenis
    primarykey
    data
    text
    plurals
    1. COJust had another thought, assuming your third-party app has a sql driver-to-use in some config file maybe you can point it to use MyConnection (add a constructor with no arguments to instantiate a SQLConnection inside MyConnection) and this should be loadable by the third-party app - thereby allowing you to inject MyConnection instead of SQLConnection
      singulars
    2. COAs long as you can get a hold of the connection early enough and put the wrapper around it (if property is not readonly), you should be golden. It's kind of amazing that the third-party doesn't give you any access to the connection at creation or an event when the connection is created or when a transaction is started/ended. Maybe you can create the connection and pass it to the 3rd party app to substitute for its own? Maybe you can use reflection to set the 3rd party's connection property or internal variable to MyConnection?
      singulars
    3. COI see what you mean. Your case is difficult because you are letting a 3rd create your connection, in my case I am creating many connections but they are global in my app so I am constantly losing track of who is opening what transactions and I'd like to keep transactions with my connection. In your case I guess after your third-party created connection is passed into MyConnection then the transactions will be tracked. You have to figure out if the 3rd party created a transaction before you got a hold of conn so you would have little choice but to use reflection to find the initial transaction.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload