def quoted_identifier(identifier):
    """One-liner to add double-quote marks around an SQL identifier
    (table name, view name, etc), and to escape double-quote marks.

    Args:
        identifier(str): the unquoted identifier
    """
    return '"{}"'.format(identifier.replace('"', '""'))
