File tree Expand file tree Collapse file tree 10 files changed +30
-22
lines changed
Expand file tree Collapse file tree 10 files changed +30
-22
lines changed Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_with_connector initializes a connection pool for a
25- # Cloud SQL instance of MySQL using the Cloud SQL Python Connector.
2624def connect_with_connector () -> sqlalchemy .engine .base .Engine :
25+ """
26+ Initializes a connection pool for a Cloud SQL instance of MySQL.
27+
28+ Uses the Cloud SQL Python Connector package.
29+ """
2730 # Note: Saving credentials in environment variables is convenient, but not
2831 # secure - consider a more secure solution such as
2932 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_with_connector_auto_iam_authn initializes a connection pool for
25- # a Cloud SQL instance of MySQL using the Cloud SQL Python Connector
26- # with Automatic IAM Database Authentication.
2724def connect_with_connector_auto_iam_authn () -> sqlalchemy .engine .base .Engine :
25+ """
26+ Initializes a connection pool for a Cloud SQL instance of MySQL.
27+
28+ Uses the Cloud SQL Python Connector with Automatic IAM Database Authentication.
29+ """
2830 # Note: Saving credentials in environment variables is convenient, but not
2931 # secure - consider a more secure solution such as
3032 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_tcp_socket initializes a TCP connection pool
25- # for a Cloud SQL instance of MySQL.
2624def connect_tcp_socket () -> sqlalchemy .engine .base .Engine :
25+ """ Initializes a TCP connection pool for a Cloud SQL instance of MySQL. """
2726 # Note: Saving credentials in environment variables is convenient, but not
2827 # secure - consider a more secure solution such as
2928 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 1818import sqlalchemy
1919
2020
21- # connect_unix_socket initializes a Unix socket connection pool for
22- # a Cloud SQL instance of MySQL.
2321def connect_unix_socket () -> sqlalchemy .engine .base .Engine :
22+ """ Initializes a Unix socket connection pool for a Cloud SQL instance of MySQL. """
2423 # Note: Saving credentials in environment variables is convenient, but not
2524 # secure - consider a more secure solution such as
2625 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_with_connector initializes a connection pool for a
25- # Cloud SQL instance of Postgres using the Cloud SQL Python Connector.
2624def connect_with_connector () -> sqlalchemy .engine .base .Engine :
25+ """
26+ Initializes a connection pool for a Cloud SQL instance of Postgres.
27+
28+ Uses the Cloud SQL Python Connector package.
29+ """
2730 # Note: Saving credentials in environment variables is convenient, but not
2831 # secure - consider a more secure solution such as
2932 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_with_connector_auto_iam_authn initializes a connection pool for
25- # a Cloud SQL instance of Postgres using the Cloud SQL Python Connector
26- # with Automatic IAM Database Authentication.
2724def connect_with_connector_auto_iam_authn () -> sqlalchemy .engine .base .Engine :
25+ """
26+ Initializes a connection pool for a Cloud SQL instance of Postgres.
27+
28+ Uses the Cloud SQL Python Connector with Automatic IAM Database Authentication.
29+ """
2830 # Note: Saving credentials in environment variables is convenient, but not
2931 # secure - consider a more secure solution such as
3032 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2222import sqlalchemy
2323
2424
25- # connect_tcp_socket initializes a TCP connection pool
26- # for a Cloud SQL instance of Postgres.
2725def connect_tcp_socket () -> sqlalchemy .engine .base .Engine :
26+ """ Initializes a TCP connection pool for a Cloud SQL instance of Postgres. """
2827 # Note: Saving credentials in environment variables is convenient, but not
2928 # secure - consider a more secure solution such as
3029 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 1818import sqlalchemy
1919
2020
21- # connect_unix_socket initializes a Unix socket connection pool for
22- # a Cloud SQL instance of Postgres.
2321def connect_unix_socket () -> sqlalchemy .engine .base .Engine :
22+ """ Initializes a Unix socket connection pool for a Cloud SQL instance of Postgres. """
2423 # Note: Saving credentials in environment variables is convenient, but not
2524 # secure - consider a more secure solution such as
2625 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_with_connector initializes a connection pool for a
25- # Cloud SQL instance of SQL Server using the Cloud SQL Python Connector.
2624def connect_with_connector () -> sqlalchemy .engine .base .Engine :
25+ """
26+ Initializes a connection pool for a Cloud SQL instance of SQL Server.
27+
28+ Uses the Cloud SQL Python Connector package.
29+ """
2730 # Note: Saving credentials in environment variables is convenient, but not
2831 # secure - consider a more secure solution such as
2932 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
Original file line number Diff line number Diff line change 2121import sqlalchemy
2222
2323
24- # connect_tcp_socket initializes a TCP connection pool
25- # for a Cloud SQL instance of SQL Server.
2624def connect_tcp_socket () -> sqlalchemy .engine .base .Engine :
25+ """ Initializes a TCP connection pool for a Cloud SQL instance of SQL Server. """
2726 # Note: Saving credentials in environment variables is convenient, but not
2827 # secure - consider a more secure solution such as
2928 # Cloud Secret Manager (https://cloud.google.com/secret-manager) to help
You can’t perform that action at this time.
0 commit comments