def getquoted(self):
        # Prepare an adapted object from the tuple form of this
        # composite instance.
        adapted = adapt(tuple(self._obj))
        adapted.prepare(connection.connection)

        # Return the appropriate SQL fragment.
        return '{sql}::{db_type}'.format(
            db_type=self._db_type,
            sql=adapted.getquoted().decode('utf8'),
        ).encode('utf8')
Update the tree starting from the specified element.
dataset/ETHPy150Open lukesneeringer/django-pgfields/django_pg/models/fields/composite/adapter.py/CompositeAdapter.getquoted--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/viewer/tree_viewer.py/TreeViewer.update