from typing import List


def get_columns(cur, table: str) -> List[str]:
    """Get the columns from MySQL database."""

    cur.execute(f"SHOW COLUMNS FROM {table};")
    columns = [column[0] for column in cur]
    return columns