Skip to content

Conversation

@andrewsensus
Copy link

Description

Add ConnectionPool.overrideTedious(tedious) to create connections using specified tedious module rather than ConnectionPool's default version of tedious.

Related Issue

Issue #43

Motivation and Context

ConnectionPool requires a version of tedious; users of ConnectionPool might wish to update tedious on a different schedule than ConnectionPool updates tedious.

How Has This Been Tested?

An internal project has been running with this change and an updated version of tedious for months. Testing is primarily on Linux but includes OS X and Windows as well.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
    This is not a breaking change because using the new method is optional. If the new method is not called, ConnectionPool continues to use the same version of tedious it has been using.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
    Any suggestions on what tests should be added? Perhaps there's some clever trick to pull in multiple versions of tedious under different names. Perhaps a test should wrap tedious.Connection and verify the wrapper got called?
  • All new and existing tests passed.

@700software
Copy link

I'm creating https://github.com/700software/tedious-connection-pool2 to have this change.

@andrewsensus
Copy link
Author

@700software FYI, there's another branch I don't think I created a pull request for. I don't know if it's relevant for your use-case, but I found it useful when using prepared statements: https://github.com/SensusDA/tedious-connection-pool/commits/suppress-reset

@700software
Copy link

@andrewsensus, I'd like you to make PR to tedious-connection-pool2 if you think it would be helpful to the open source community.

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.

2 participants