kv

exists

Check whether one KV key exists.

strata kv exists

wire kv_exists

Returns a boolean status for one KV key without loading the stored value.

Status commands return a scalar or compact status payload and do not mutate database state.

To see the complete help for this command, run:

strata kv exists --help

Example

Check whether a key currently has a visible value.

strata kv put k vstrata kv exists kstrata kv exists absent

Parameters

NameTypeRequiredDescription
keyBytesyesKey to check.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

StatusValue<bool>

  • databoolean
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

CodeRetryCommit outcome
failed_precondition.engine.runtime_closednevernot_started
not_found.engine.branchnevernot_applicable
invalid_argument.engine.product_spacenevernot_started
invalid_argument.engine.kv_keynevernot_started
← All 13 Key-value commands

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