# `Electric.Client.Offset`
[🔗](https://github.com/electric-sql/electric/tree/%40core/elixir-client%400.9.4/packages/elixir-client/lib/electric/client/offset.ex#L1)

Represents an offset in the synchronisation stream from Electric.

# `t`

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

# `before_all`

```elixir
@spec before_all() :: t()
```

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

# `first`

```elixir
@spec first() :: t()
```

The first possible offset in the log.

# `new`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
