'Returns the FOR UPDATE SQL clause to lock rows for an update operation.'

def for_update_sql(self, nowait=False):

    if nowait:
        return 'FOR    UPDATE    NOWAIT'
    else:
        return 'FOR    UPDATE'
