# `MailglassInbound.Repo`
[🔗](https://github.com/szTheory/mailglass/blob/v0.1.0/lib/mailglass_inbound/repo.ex#L1)

Thin facade over the host-configured repo for `mailglass_inbound`.

The sibling package does not own a repo. Host applications configure one via
`config :mailglass_inbound, :repo, MyApp.Repo`.

# `all`

```elixir
@spec all(
  Ecto.Queryable.t(),
  keyword()
) :: [struct()]
```

# `get`

```elixir
@spec get(Ecto.Queryable.t(), term(), keyword()) :: struct() | nil
```

# `insert`

```elixir
@spec insert(
  Ecto.Changeset.t() | struct(),
  keyword()
) :: {:ok, struct()} | {:error, Ecto.Changeset.t()}
```

# `multi`

```elixir
@spec multi(
  Ecto.Multi.t(),
  keyword()
) :: {:ok, map()} | {:error, atom(), any(), map()}
```

# `one`

```elixir
@spec one(
  Ecto.Queryable.t(),
  keyword()
) :: struct() | nil
```

# `transact`

```elixir
@spec transact(
  (-&gt; {:ok, any()} | {:error, any()}),
  keyword()
) :: {:ok, any()} | {:error, any()}
```

---

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