Ecto.Type.load/2

Parsed documentation:
View on GitHub
Loads a value with the given type.

Load is invoked when loading database native types
into a struct.

    iex> load(:string, nil)
    {:ok, nil}
    iex> load(:string, "foo")
    {:ok, "foo"}

    iex> load(:integer, 1)
    {:ok, 1}
    iex> load(:integer, "10")
    :error
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.