-
Notifications
You must be signed in to change notification settings - Fork 35
CHORE: Remove unused methods from helpers.py & Fix PR Description
#399
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
base: main
Are you sure you want to change the base?
Conversation
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changesNo lines with coverage information in this diff. 📋 Files Needing Attention📉 Files with overall lowest coverage (click to expand)mssql_python.pybind.logger_bridge.hpp: 58.8%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.row.py: 66.2%
mssql_python.pybind.ddbc_bindings.cpp: 69.4%
mssql_python.pybind.ddbc_bindings.h: 69.7%
mssql_python.pybind.connection.connection.cpp: 73.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 84.1%
mssql_python.cursor.py: 84.7%🔗 Quick Links
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request removes unused helper functions from the mssql_python.helpers module as part of a code cleanup effort. The removed functions previously handled connection string manipulation but are no longer used in the codebase.
Changes:
- Removed
add_driver_to_connection_strfunction that previously injected ODBC driver into connection strings - Removed
add_driver_name_to_app_parameterfunction that previously ensured APP parameter was set - Removed unused import of
add_driver_to_connection_strfrom connection.py
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| mssql_python/helpers.py | Removed two unused helper functions related to connection string manipulation |
| mssql_python/connection.py | Removed unused import of add_driver_to_connection_str |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…crosoft/mssql-python into bewithgaurav/remove-dead-code
helpers.py & Fix PR Description
gargsaumya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Work Item / Issue Reference
Summary
This pull request removes unused helper functions related to connection string manipulation from the
mssql_python.helpersmodule. The primary focus is on cleaning up the codebase by eliminating theadd_driver_to_connection_strandadd_driver_name_to_app_parameterfunctions, as well as their import and usage.Code cleanup and removal of unused functions:
add_driver_to_connection_strfrommssql_python/helpers.pyinconnection.py, as it is no longer used.add_driver_to_connection_strfunction, which previously handled injecting a default ODBC driver into the connection string.add_driver_name_to_app_parameterfunction, which previously ensured theAPPparameter was set in the connection string.