Module engine (0.2.2)

API documentation for engine module.

Classes

Column

Column(name: "str", data_type: "str", nullable: "bool" = True)

Column(name: 'str', data_type: 'str', nullable: 'bool' = True)

MySQLEngine

MySQLEngine(engine: sqlalchemy.engine.base.Engine)

A class for managing connections to a Cloud SQL for MySQL database.

Modules Functions

_get_iam_principal_email

_get_iam_principal_email(credentials: google.auth.credentials.Credentials) -> str

Get email address associated with current authenticated IAM principal.

Email will be used for automatic IAM database authentication to Cloud SQL.

Parameter
NameDescription
credentials google.auth.credentials.Credentials

The credentials object to use in finding the associated IAM principal email address.

Returns
TypeDescription
email (str)The email address associated with the current authenticated IAM principal.