src/Leevel/Database/Select.php
public function update($data, array $bind = [], bool $flag = false)
    {
        return $this
            ->safeSql($flag)
            ->runNativeSql(
                ...$this
                    ->condition
                    ->update($data, $bind)
            );
    }
public function update($data, array $bind = [], bool $flag = false)
    {
        return $this
            ->safeSql($flag)
            ->runNativeSql(
                ...$this
                    ->condition
                    ->update($data, $bind)
            );
    }
更新数据 update (支持原生 sql).

@param array|string $data
@param array        $bind
@param bool         $flag 指示是否不做任何操作只返回 SQL

@return array|int