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

feat: add context manager support to client #540

Merged
merged 1 commit into from Mar 9, 2021

Conversation

plamut
Copy link
Contributor

@plamut plamut commented Mar 3, 2021

Closes #538.

This PR adds context manager capabilities to BigQuery client.

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@plamut plamut requested review from a team and steffnay and removed request for a team March 3, 2021 11:57
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Mar 3, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 3, 2021
@plamut plamut requested a review from tswast March 3, 2021 11:58
Copy link
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

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

Love it

@tswast tswast merged commit d5c7e11 into googleapis:master Mar 9, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Mar 9, 2021
@plamut plamut deleted the iss-538 branch March 9, 2021 21:16
emkornfield pushed a commit to emkornfield/python-bigquery that referenced this pull request Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for with statement for Client class
2 participants