kv

scan

Scan KV rows with values and version facts.

strata kv scan

wire kv_scan

Scans visible KV rows starting at an optional key. Each item includes the key, value, and commit metadata exposed by the executor output.

Paginated responses use opaque cursors. Clients should pass the returned cursor back to the same command shape and must not parse cursor contents.

To see the complete help for this command, run:

strata kv scan --help

Example

Scan full rows from the start, in key order.

strata kv put a 1strata kv put b 2strata kv scan

Parameters

NameTypeRequiredDescription
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
limitinteger or nullnoOptional row limit.
spacestring or nullnoTarget product space. Defaults to `"default"`.
startanynoOptional inclusive start key.

Returns

Page<ScanItem, Bytes>

  • dataobject

    Shared pagination continuation facts.

  • 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/scan.md