ChangeSet 类

单记录写入操作的事务组。

所有操作都成功或回滚在一起。 用作上下文管理器或直接添加操作的调用 records

不直接实例化;use changeset.

示例:


   with batch.changeset() as cs:
       ref = cs.records.create("contact", {"firstname": "Alice"})
       cs.records.update("account", account_id, {
           "[email protected]": ref
       })

构造函数

ChangeSet(internal: _ChangeSet)

参数

名称 说明
internal
必需