'Loads a tab-delimited file into a database table'

def bulk_load(self, table, tmp_file):

    conn = self.get_conn()
    cur = conn.cursor()
    cur.execute("\n                                                LOAD    DATA    LOCAL    INFILE    '{tmp_file}'\n                                                INTO    TABLE    {table}\n                                                ".format(**locals()))
    conn.commit()
