Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a skip_connect option to avoid making a database connection on initialization #2

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aharpervc
Copy link

Todo

  • add :skip_connect init opt
  • add a test for the option
  • add a test for any offline instance methods we care to validate, so at least escape
  • update readme

Notes

This enables creating a TinyTds::Client instance without an actual database connection. Normally this isn't useful, except for when you want to call escape offline, such as for automated testing or preparing SQL statements outside of the context of a database.

…initialization

- this enables creating a TinyTds::Client instance without an actual database connection
- normally this isn't useful, *except* for when you want to call `escape` offline
@aharpervc aharpervc self-assigned this Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant