Skip to content

Commit 2c35c06

Browse files
authored
chore: add region tag for IAM auth connection code (#147)
1 parent 9633f59 commit 2c35c06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/system/test_pg8000_iam_auth.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
table_name = f"books_{uuid.uuid4().hex}"
2626

2727

28+
# [START cloud_sql_connector_postgres_pg8000_iam_auth]
29+
# The Cloud SQL Python Connector can be used along with SQLAlchemy using the
30+
# 'creator' argument to 'create_engine'
2831
def init_connection_engine() -> sqlalchemy.engine.Engine:
2932
def getconn() -> pg8000.dbapi.Connection:
3033
conn: pg8000.dbapi.Connection = connector.connect(
@@ -44,6 +47,9 @@ def getconn() -> pg8000.dbapi.Connection:
4447
return engine
4548

4649

50+
# [END cloud_sql_connector_postgres_pg8000_iam_auth]
51+
52+
4753
@pytest.fixture(name="pool")
4854
def setup() -> Generator:
4955
pool = init_connection_engine()

0 commit comments

Comments
 (0)