Versioned.insert
You're seeing just the function
insert
, go back to Versioned module for more information.
Specs
insert(Ecto.Schema.t() | Ecto.Changeset.t(), keyword()) :: {:ok, Ecto.Schema.t()} | {:error, any()} | {:error, Ecto.Multi.name(), any(), %{required(Ecto.Multi.name()) => any()}}
Inserts a versioned struct defined via Ecto.Schema or a changeset.
This function calls to the Ecto.Repo module twice -- once to insert the record itself, and once to insert a copy as the first version in the versions table.