def upsert(self, rows, unique_fields, update_fields):
        if len(rows) == 0:
            return

        sql, sql_args = self.get_upsert_sql(rows, unique_fields, update_fields)

        # get the cursor to execute the query
        cursor = self.get_cursor()

        # execute the query
        cursor.execute(sql, sql_args)
Decode the specified data string
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Query.upsert--crossover with--dataset/ETHPy150Open lbryio/lbry/lbrynet/dht/encoding.py/Encoding.decode