# `Electric.Shapes.Consumer.TransactionConverter`
[🔗](https://github.com/electric-sql/electric/tree/%40core/sync-service%401.6.2/packages/sync-service/lib/electric/shapes/consumer/transaction_converter.ex#L1)

# `convert_opts`

```elixir
@type convert_opts() :: keyword()
```

# `transaction_to_effects`

```elixir
@spec transaction_to_effects(
  Electric.Replication.Changes.Transaction.t(),
  Electric.Shapes.Shape.t(),
  convert_opts()
) ::
  {:ok, [Electric.Shapes.Consumer.Effects.t()]}
  | {:error, {:truncate, Electric.Replication.Changes.xid() | nil}}
```

# `transactions_to_effects`

```elixir
@spec transactions_to_effects(
  [Electric.Replication.Changes.Transaction.t()],
  Electric.Shapes.Shape.t(),
  convert_opts()
) ::
  {:ok, [Electric.Shapes.Consumer.Effects.t()]}
  | {:error, {:truncate, Electric.Replication.Changes.xid() | nil}}
```

---

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