You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-10Lines changed: 26 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,9 +173,10 @@ To close the `Connector` object's background resources, call its `close()` metho
173
173
connector.close()
174
174
```
175
175
176
-
**Note**: For more examples of using SQLAlchemy to manage connection pooling with the connector, please see [Cloud SQL SQLAlchemy Samples](https://cloud.google.com/sql/docs/postgres/connect-connectors#python_1).
177
-
178
-
**Note for SQL Server users**: If your SQL Server instance requires SSL, you need to download the CA certificate for your instance and include `cafile={path to downloaded certificate}` and `validate_host=False`. This is a workaround for a [known issue](https://issuetracker.google.com/184867147).
176
+
> [!NOTE]
177
+
>
178
+
> For more examples of using SQLAlchemy to manage connection pooling with the connector,
179
+
> please see [Cloud SQL SQLAlchemy Samples](https://cloud.google.com/sql/docs/postgres/connect-connectors#python_1).
179
180
180
181
### Configuring the Connector
181
182
@@ -275,9 +276,11 @@ conn = connector.connect(
275
276
)
276
277
```
277
278
278
-
Note: If specifying Private IP or Private Service Connect, your application must be
279
-
attached to the proper VPC network to connect to your Cloud SQL instance. For most
280
-
applications this will require the use of a [VPC Connector][vpc-connector].
279
+
> [!IMPORTANT]
280
+
>
281
+
> If specifying Private IP or Private Service Connect (PSC), your application must be
282
+
> attached to the proper VPC network to connect to your Cloud SQL instance. For most
283
+
> applications this will require the use of a [VPC Connector][vpc-connector].
> If your SQL Server instance is set to [enforce SSL connections](https://cloud.google.com/sql/docs/sqlserver/configure-ssl-instance#enforcing-ssl),
317
+
> you need to download the CA certificate for your instance and include `cafile={path to downloaded certificate}`
318
+
> and `validate_host=False`. This is a workaround for a [known issue](https://issuetracker.google.com/184867147).
319
+
320
+
#### Active Directory Authentication
310
321
311
-
Active Directory authentication for SQL Server instances is currently only supported on Windows. First, make sure to follow [these steps](https://cloud.google.com/blog/topics/developers-practitioners/creating-sql-server-instance-integrated-active-directory-using-google-cloud-sql) to set up a Managed AD domain and join your Cloud SQL instance to the domain. [See here for more info on Cloud SQL Active Directory integration](https://cloud.google.com/sql/docs/sqlserver/ad).
322
+
Active Directory authentication for SQL Server instances is currently only supported on Windows.
323
+
First, make sure to follow [these steps](https://cloud.google.com/blog/topics/developers-practitioners/creating-sql-server-instance-integrated-active-directory-using-google-cloud-sql)
324
+
to set up a Managed AD domain and join your Cloud SQL instance to the domain.
325
+
[See here for more info on Cloud SQL Active Directory integration](https://cloud.google.com/sql/docs/sqlserver/ad).
312
326
313
327
Once you have followed the steps linked above, you can run the following code to return a connection object:
314
328
@@ -521,8 +535,10 @@ An alternative to using the `create_async_connector` function is initializing
521
535
a `Connector` as an async context manager, removing the need for explicit
522
536
calls to `connector.close_async()` to cleanup resources.
523
537
524
-
**Note:** This alternative requires that the running event loop be
525
-
passed in as the `loop` argument to `Connector()`.
538
+
> [!NOTE]
539
+
>
540
+
> This alternative requires that the running event loop be
541
+
> passed in as the `loop` argument to `Connector()`.
0 commit comments