Skip to main content
Version: 1.7.0

MySQLConn

class MySQLConn(
uri: str,
credentials: UserPasswordCredentials | None = None,
enforce_connection_params: bool = True,
cx_src_configs_mysql: dict | None = None,
cx_dst_configs_mysql: dict | None = None,
)

Bases: Conn

Categories: connections

Represents a connection configuration to MySQL.

Initialize a MySQLConn instance.

Parameters

parameter
uri

The URI of the MySQL database.

parameter
credentials

Credentials for authenticating with the database.

parameter
enforce_connection_params

Whether to enforce connection parameters for the MySQL connection. Applicable only for a connection to a MySQL Destination. Defaults to True.

parameter
cx_src_configs_mysql

Source-specific configuration parameters for the MySQL connection. Defaults to None.

parameter
cx_dst_configs_mysql

Destination-specific configuration parameters for the MySQL connection. Defaults to None.

Properties

property
credentialsUserPasswordCredentials | None

The credentials required to access the MySQL database. If no credentials were provided, it will return None.

property
cx_dst_configs_mysqldict

The destination configuration parameters for the MySQL connection.

property
cx_src_configs_mysqldict

The source configuration parameters for the MySQL connection.

property
enforce_connection_paramsbool

Whether to enforce connection parameters for the MySQL connection.

property
uristr

The URI of the database where the data is located.