View Source Electric.Client.Offset (Electric Client v0.3.0)

Represents an offset in the synchronisation stream from Electric.

Summary

Functions

Return an offset that is guaranteed to be before any real database operations.

The first possible offset in the log.

Create a new offset string from the given LSN and operation offsets.

Types

Functions

@spec before_all() :: t()

Return an offset that is guaranteed to be before any real database operations.

@spec first() :: t()

The first possible offset in the log.

Link to this function

new(tx_offset, op_offset)

View Source
@spec new(non_neg_integer(), non_neg_integer()) :: t()

Create a new offset string from the given LSN and operation offsets.

iex> new(2349, 3)
"2349_3"