# `FastDecimal.Ecto.Type`
[🔗](https://github.com/b-erdem/fastdecimal/blob/v1.0.1/lib/fastdecimal/ecto_type.ex#L2)

`Ecto.Type` implementation for `FastDecimal`. Lets you use `FastDecimal`
as the value type for `numeric` / `decimal` columns.

    defmodule MyApp.Invoice do
      use Ecto.Schema

      schema "invoices" do
        field :total, FastDecimal.Ecto.Type
      end
    end

The database adapter (e.g. postgrex) speaks `Decimal` over the wire — this
type converts at the boundary so the database stays compatible while your
Elixir code holds `%FastDecimal{}` structs.

---

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