Skip to main content

plan_insert

Function plan_insert 

Source
pub fn plan_insert(
    schema_name: &str,
    registry: &Registry,
    ctx: Option<&Context>,
    data: &Value,
    now: i64,
    new_id: &str,
    fn_registry: Option<&dyn FnRegistry>,
) -> Result<Value, String>
Expand description

生成插入命令(对应 JS insert)

now 与 new_id 由 Host 提供(core 无时钟与随机源,且这样可让产出确定、便于对拍)。