Checks several KV keys and returns positional boolean status values. The response preserves the input order.
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
Check existence for many keys at once.
CLI
$ strata command run --command-json '{"entries":[{"key":"YQ==","value":"MQ=="}],"type":"kv_batch_put"}'
$ strata command run --command-json '{"keys":["YQ==","bWlzc2luZw=="],"type":"kv_batch_exists"}'
Wire
{"entries":[{"key":"YQ==","value":"MQ=="}],"type":"kv_batch_put"}
{"keys":["YQ==","bWlzc2luZw=="],"type":"kv_batch_exists"}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
keys | Bytes[] | yes | Keys to check. |
Plus the optional scope: branch and space (default to the session branch and the "default" space).
Returns
BatchResult<BatchExistsItemResult>.
Errors
failed_precondition.engine.runtime_closednot_found.engine.branchinvalid_argument.engine.product_spaceinvalid_argument.engine.kv_keyinvalid_argument.engine.kv_batch
Invocation
- CLI: via
strata command run(no dedicated verb) - Wire type:
kv_batch_exists