'Converts a sequence to a string of the form ``{item1, item2, ...}``.  This
is suitable for ``set`` type columns.'

def cql_encode_set_collection(self, val):

    return ('{%s}' % ',    '.join((self.mapping.get(type(v), self.cql_encode_object)(v) for v in val)))
