def bulk_load(self, table, tmp_file):
        conn = self.get_conn()
        cur = conn.cursor()
        cur.execute("""
            LOAD DATA LOCAL INFILE '{tmp_file}'
            INTO TABLE {table}
            """.format(**locals()))
        conn.commit()
Loads a tab-delimited file into a database table
dataset/ETHPy150Open airbnb/airflow/airflow/hooks/mysql_hook.py/MySqlHook.bulk_load