airflow.providers.mysql.transfers.s3_to_mysql

Module Contents

Classes

S3ToMySqlOperator

Loads a file from S3 into a MySQL table.

class airflow.providers.mysql.transfers.s3_to_mysql.S3ToMySqlOperator(*, s3_source_key: str, mysql_table: str, mysql_duplicate_key_handling: str = 'IGNORE', mysql_extra_options: Optional[str] = None, aws_conn_id: str = 'aws_default', mysql_conn_id: str = 'mysql_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

Loads a file from S3 into a MySQL table.

Parameters
template_fields :Sequence[str] = ['s3_source_key', 'mysql_table'][source]
template_ext :Sequence[str] = [][source]
ui_color = #f4a460[source]
execute(self, context: airflow.utils.context.Context) None[source]

Executes the transfer operation from S3 to MySQL.

Parameters

context (dict) -- The context that is being provided when executing.

Was this entry helpful?