Electric.Client.Offset (Electric Client v0.7.0)

View Source

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

t()

@type t() :: String.t()

Functions

before_all()

@spec before_all() :: t()

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

first()

@spec first() :: t()

The first possible offset in the log.

new(tx_offset, op_offset)

@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"