airflow.operators.generic_transfer
¶
模組內容¶
類別¶
將資料從一個連線移動到另一個連線。 |
- class airflow.operators.generic_transfer.GenericTransfer(*, sql, destination_table, source_conn_id, destination_conn_id, preoperator=None, insert_args=None, **kwargs)[原始碼]¶
Bases:
airflow.models.BaseOperator
將資料從一個連線移動到另一個連線。
假設它們都在各自的 hooks 中提供所需的方法。來源 hook 需要公開 get_records 方法,而目的地 hook 需要公開 insert_rows 方法。
這適用於適合放入記憶體的小型資料集。
- 參數