Skip to content

Commit d11efaf

Browse files
committed
chore: reformat constructor call for lazy refresh csql connector
1 parent 1c50a54 commit d11efaf

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cloud-sql/mysql/sqlalchemy/connect_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def connect_with_connector() -> sqlalchemy.engine.base.Engine:
4242
ip_type = IPTypes.PRIVATE if os.environ.get("PRIVATE_IP") else IPTypes.PUBLIC
4343
refresh_strategy = RefreshStrategy.LAZY
4444

45-
connector = Connector(ip_type = ip_type, refresh_strategy = refresh_strategy)
45+
connector = Connector(ip_type=ip_type, refresh_strategy=refresh_strategy)
4646

4747
def getconn() -> pymysql.connections.Connection:
4848
conn: pymysql.connections.Connection = connector.connect(

cloud-sql/mysql/sqlalchemy/connect_connector_auto_iam_authn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def connect_with_connector_auto_iam_authn() -> sqlalchemy.engine.base.Engine:
4141
refresh_strategy = RefreshStrategy.LAZY
4242

4343
# initialize Cloud SQL Python Connector object
44-
connector = Connector(refresh_strategy = refresh_strategy)
44+
connector = Connector(refresh_strategy=refresh_strategy)
4545

4646
def getconn() -> pymysql.connections.Connection:
4747
conn: pymysql.connections.Connection = connector.connect(

cloud-sql/postgres/sqlalchemy/connect_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def connect_with_connector() -> sqlalchemy.engine.base.Engine:
4343
refresh_strategy = RefreshStrategy.LAZY
4444

4545
# initialize Cloud SQL Python Connector object
46-
connector = Connector(refresh_strategy = refresh_strategy)
46+
connector = Connector(refresh_strategy=refresh_strategy)
4747

4848
def getconn() -> pg8000.dbapi.Connection:
4949
conn: pg8000.dbapi.Connection = connector.connect(

cloud-sql/postgres/sqlalchemy/connect_connector_auto_iam_authn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def connect_with_connector_auto_iam_authn() -> sqlalchemy.engine.base.Engine:
4141
refresh_strategy = RefreshStrategy.LAZY
4242

4343
# initialize Cloud SQL Python Connector object
44-
connector = Connector(refresh_strategy = refresh_strategy)
44+
connector = Connector(refresh_strategy=refresh_strategy)
4545

4646
def getconn() -> pg8000.dbapi.Connection:
4747
conn: pg8000.dbapi.Connection = connector.connect(

cloud-sql/sql-server/sqlalchemy/connect_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def connect_with_connector() -> sqlalchemy.engine.base.Engine:
4242
ip_type = IPTypes.PRIVATE if os.environ.get("PRIVATE_IP") else IPTypes.PUBLIC
4343
refresh_strategy = RefreshStrategy.LAZY
4444

45-
connector = Connector(ip_type = ip_type, refresh_strategy = refresh_strategy)
45+
connector = Connector(ip_type=ip_type, refresh_strategy=refresh_strategy)
4646

4747
connect_args = {}
4848
# If your SQL Server instance requires SSL, you need to download the CA

0 commit comments

Comments
 (0)