Skip to content

feat: reuse instance connection managers#69

Merged
shubha-rajan merged 3 commits into
mainfrom
reuse-icm
Apr 2, 2021
Merged

feat: reuse instance connection managers#69
shubha-rajan merged 3 commits into
mainfrom
reuse-icm

Conversation

@shubha-rajan

Copy link
Copy Markdown
Contributor

fixes #64

@shubha-rajan shubha-rajan requested a review from kurtisvg April 1, 2021 17:01
@google-cla google-cla Bot added the cla: yes label Apr 1, 2021
:param instance_connection_string:
:type instance_conn_str: str
:param instance_conn_str:
A string containing the GCP project name, region name, and instance

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you're going to shorten this, update the docstring to include "instance connection string" and an explanation of the format, since that's a significant term in helping users find it in the console.

Comment thread google/cloud/sql/connector/connector.py Outdated


def connect(instance_connection_string, driver: str, **kwargs):
def connect(instance_conn_str, driver: str, **kwargs):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: if you're gonna shorten, shorten consistently

Suggested change
def connect(instance_conn_str, driver: str, **kwargs):
def connect(inst_conn_str, driver: str, **kwargs):

@shubha-rajan shubha-rajan merged commit 72c05ec into main Apr 2, 2021
@shubha-rajan shubha-rajan deleted the reuse-icm branch April 2, 2021 18:18
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.

ICMs should be reused on connect

2 participants