Docs menu · Reference

Writes multiple KV entries using the executor batch contract. Valid items share commit facts where the underlying engine applies them together.

Itemwise batches return one positional item result per input item. The outer batch status summarizes whether all, some, or none of the items succeeded.

Examples

Write many entries in one commit.

CLI

$ strata command run --command-json '{"entries":[{"key":"YQ==","value":"MQ=="},{"key":"Yg==","value":"Mg=="}],"type":"kv_batch_put"}'
$ strata command run --command-json '{"keys":["YQ==","Yg=="],"type":"kv_batch_get"}'

Wire

{"entries":[{"key":"YQ==","value":"MQ=="},{"key":"Yg==","value":"Mg=="}],"type":"kv_batch_put"}
{"keys":["YQ==","Yg=="],"type":"kv_batch_get"}

Parameters

NameTypeRequiredDescription
entriesBatchKvEntry[]yesEntries to write.

Plus the optional scope: branch and space (default to the session branch and the "default" space).

Returns

BatchResult<KvMutationItem>.

Errors

Invocation

  • CLI: via strata command run (no dedicated verb)
  • Wire type: kv_batch_put

agents: this page as markdown → /docs/reference/kv/batch_put.md