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
uriThe URI of the MySQL database.
credentialsCredentials for authenticating with the database.
enforce_connection_paramsWhether to enforce connection parameters for the MySQL connection. Applicable only for a connection to a MySQL Destination. Defaults to True.
cx_src_configs_mysqlSource-specific configuration parameters for the MySQL connection. Defaults to None.
cx_dst_configs_mysqlDestination-specific configuration parameters for the MySQL connection. Defaults to None.
Properties
credentialsUserPasswordCredentials | NoneThe credentials required to access the MySQL database. If no credentials were provided, it will return None.
cx_dst_configs_mysqldictThe destination configuration parameters for the MySQL connection.
cx_src_configs_mysqldictThe source configuration parameters for the MySQL connection.
enforce_connection_paramsboolWhether to enforce connection parameters for the MySQL connection.
uristrThe URI of the database where the data is located.