-
Notifications
You must be signed in to change notification settings - Fork 132
Connections Pane: Support SQL Server #10824
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
|
E2E Tests 🚀 |
f7b3f89 to
bc1efef
Compare
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 adds SQL Server support to the Connections Pane through both pyodbc and pymssql drivers. The implementation follows established patterns from other database connections (Snowflake, BigQuery, Databricks) and includes comprehensive test coverage.
Key Changes
- Implemented
SQLServerConnectionclass with support for both pyodbc and pymssql drivers - Added helper function
_is_pyodbc_sqlserver()to detect SQL Server connections via pyodbc - Created comprehensive test suite with base test class and driver-specific implementations
- Added package dependencies for pymssql and pyodbc to test requirements
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
connections.py |
Added SQLServerConnection class implementing database/schema/table hierarchy navigation, field listing, and preview functionality with proper SQL identifier escaping |
test_connections.py |
Added test infrastructure including connection helper functions, base test class _SQLServerConnectionsTestBase, and two driver-specific test classes |
pinned-test-requirements.txt |
Added pymssql==2.3.10 and pyodbc==5.3.0 with Python version constraints |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
extensions/positron-python/python_files/posit/positron/tests/test_connections.py
Show resolved
Hide resolved
extensions/positron-python/python_files/posit/positron/tests/test_connections.py
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]> Signed-off-by: Daniel Falbel <[email protected]>
Addresses #10433
Support for MSSqlServer trough pyodbc and pymssql
Release Notes
New Features
Bug Fixes
QA Notes