def get_columns_in_table(connection, table):
    """
    Gets a list of all column names within the specified table.

    :param connection: Connection to the DB file.
    :param table: Table name to get columns from.
    :return: List of column names.
    """
    connection.execute("select * from %s;" % table)
    result = []
    for item in connection.description:
        result.append(item[0])
    result = result[2:]
    return result