package kurrentdb.protocol.v2.streams

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service StreamsService

streams.proto:13

message AppendRecord

streams.proto:128

Record to be appended to a stream.

Used in: AppendRecordsRequest, AppendRequest

message AppendResponse

streams.proto:75

Represents the outcome of an append operation.

Used in: AppendSessionResponse

message ConsistencyCheck

streams.proto:224

* A pre-commit condition that must hold true for the transaction to succeed. Consistency checks are evaluated atomically before any records are written. If any check is violated, the entire transaction is aborted. Two types of checks are supported: stream state checks (validates a stream's revision or lifecycle state) and query predicates (evaluates a server-side expression).

Used in: AppendRecordsRequest

message ConsistencyCheck.StreamStateCheck

streams.proto:242

* Asserts a stream is at a specific revision or lifecycle state before commit. The expected_state field accepts a specific revision number (>= 0) or a special state constant (e.g., -1 for NO_STREAM, -10 for DELETED). Evaluated using writability semantics: a soft-deleted stream is writable (appending restores it), but a tombstoned stream is never writable.

Used in: ConsistencyCheck

enum ExpectedRevisionConstants

streams.proto:165

Constants for expected revision validation in optimistic concurrency control. These can be used in the expected_revision field, or you can specify an actual revision number.

enum SchemaFormat

streams.proto:96

Represents the data format of the schema.

Used in: SchemaInfo

message SchemaInfo

streams.proto:106

Schema information for record validation and interpretation.

Used in: AppendRecord

message StreamRevision

streams.proto:270

* A specific revision of a stream. Used to represent stream positions for checkpoints, consistency checks, and head position tracking.

Used in: AppendRecordsResponse