pub fn plan_upsert(
schema_name: &str,
registry: &Registry,
ctx: Option<&Context>,
condition: &Value,
data: &Value,
options: &Value,
now: i64,
new_id: &str,
) -> Result<Value, String>Expand description
显式条件 upsert(对应 JS upsert)。
_id 需要生成时使用 new_id(Host 供给,core 无随机源)。
签名与 JS 参考实现逐一对应(跨语言 parity 优先于参数个数),保持位置参数。