ExAirtable.Phoenix.Model behaviour (ex_airtable_phoenix v0.1.0) View Source

A behaviour for using Ecto-validated Airtable models in an Elixir App.

Add use ExAirtable.Phoenix.Model to any model that implements both Airtable and Ecto schema validation.

The advantage of this behaviour is to allow you to use generic patterns to query all models using the same methods. See ExAirtable.Phoenix.Repo for more details about some of the methods you can call with models that implement this behaviour.

Link to this section Summary

Link to this section Callbacks

Specs

validate(map()) :: {:ok, map()} | {:error, Ecto.Changeset.t()}