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 support for common parameters in StatementExecutionBackend #59

Merged

Conversation

bishwajit-db
Copy link
Contributor

Add support for common parameters in StatementExecutionBackend

@CLAassistant
Copy link

CLAassistant commented Mar 18, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.95%. Comparing base (31684a2) to head (1720e78).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   82.95%   82.95%           
=======================================
  Files           7        7           
  Lines         534      534           
  Branches      105      105           
=======================================
  Hits          443      443           
  Misses         55       55           
  Partials       36       36           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. could you also add the documentation in the README, so that other know about your change?

@nfx nfx merged commit a153ee9 into databrickslabs:main Mar 18, 2024
8 of 9 checks passed
nfx added a commit that referenced this pull request Mar 18, 2024
* Added support for common parameters in StatementExecutionBackend ([#59](#59)). The `StatementExecutionBackend` class in the `databricks.labs.lsql` package's `backends.py` file now supports the passing of common parameters through keyword arguments (kwargs). This enhancement allows for greater customization and flexibility in the backend's operation, as the kwargs are passed to the `StatementExecutionExt` constructor. This change empowers users to control the behavior of the backend, making it more adaptable to various use cases. The key modification in this commit is the addition of the `**kwargs` parameter in the constructor signature and passing it to `StatementExecutionExt`, with no changes made to any methods within the class.
@nfx nfx mentioned this pull request Mar 18, 2024
nfx added a commit that referenced this pull request Mar 18, 2024
* Added support for common parameters in StatementExecutionBackend
([#59](#59)). The
`StatementExecutionBackend` class in the `databricks.labs.lsql`
package's `backends.py` file now supports the passing of common
parameters through keyword arguments (kwargs). This enhancement allows
for greater customization and flexibility in the backend's operation, as
the kwargs are passed to the `StatementExecutionExt` constructor. This
change empowers users to control the behavior of the backend, making it
more adaptable to various use cases. The key modification in this commit
is the addition of the `**kwargs` parameter in the constructor signature
and passing it to `StatementExecutionExt`, with no changes made to any
methods within the class.
@bishwajit-db bishwajit-db deleted the feature/sql-backend-common-params branch March 24, 2024 19:22
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.

3 participants