# `Exqlite.TypeExtension`
[🔗](https://github.com/elixir-sqlite/exqlite/blob/v0.36.0/lib/exqlite/type_extension.ex#L1)

A behaviour that defines the API for extensions providing custom data loaders and dumpers
for Ecto schemas.

# `convert`

```elixir
@callback convert(value :: term()) :: {:ok, term()} | {:error, reason :: term()} | nil
```

Takes a value and convers it to data suitable for storage in the database.

Returns a tagged :ok/:error tuple. If the value is not convertable by this
extension, returns nil.

---

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