Skip to main content

Module batch_update

Module batch_update 

Source
Expand description

memstead batch-update --from <file.json> — update many entities in one call.

Per-entry hash mode mirrors memstead update’s flag set:

  • expected_hash: "..." — strict optimistic lock.
  • auto_hash: true — read the entity’s current hash and use it.
  • force: true — skip the hash check entirely.

Exactly one of the three must be set per entry. Each entry resolves its hash mode independently — a mixed-mode batch is fine.

{ "updates": [
    { "id": "specs--x", "expected_hash": "...",
      "sections": { "identity": "..." } },
    { "id": "specs--y", "auto_hash": true,
      "append_sections": { "specifies": "more" } },
    { "id": "specs--z", "force": true,
      "metadata": { "level": "M1" } }
] }

Structs§

Args

Functions§

run