def cols_to_string_with_dubquotes(cols, backslash=False):
    """
    Gets a string representation of a list of strings, using double quotes.

    Useful for converting list of columns to a string for use in a query.
    Backslashes are possible if the query will be passed as a string argument to (for instance) Shuttle.
    """

    if backslash:
        return '\\"%s\\"' % ('\\", \\"'.join(cols))
    return '"%s"' % ('", "'.join(cols))