@property
    def sql(self):
        if self.where:
            self.base_statement = ' '.join(
                ['update %s set %s', self.where, ';'])

        return self.base_statement % (self.klass.__tablename__, self.update_value)
dataset/ETHPy150Open jasonlvhit/lunar/lunar/database.py/UpdateQuery.sql/original