event

exists

Check whether an event sequence exists.

strata event exists

wire event_exists

Checks whether one event sequence exists in the selected branch and space without returning the record.

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 event exists --help

Example

Check whether an event sequence exists.

strata event append user.created {"id":1}strata event exists 0strata event exists 999

Parameters

NameTypeRequiredDescription
sequenceintegeryesEvent sequence.
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
← All 10 Events commands

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