View Source PaperTrail.Multi (paper_trail v1.1.2)

Link to this section Summary

Functions

Link to this section Functions

Link to this function

add_prefix(schema, prefix)

View Source

See PaperTrail.Serializer.add_prefix/2.

See Ecto.Multi.append/2.

Link to this function

delete(multi, struct, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil, model_key: :model, version_key: :version, initial_version_key: :initial_version, ecto_options: []])

View Source
Link to this function

error(multi, name, value)

View Source

See Ecto.Multi.error/3.

See PaperTrail.Serializer.get_item_type/1.

See PaperTrail.Serializer.get_model_id/1.

Link to this function

get_sequence_id(table_name)

View Source

See PaperTrail.Serializer.get_sequence_id/1.

Link to this function

insert(multi, changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil, model_key: :model, version_key: :version, initial_version_key: :initial_version, ecto_options: []])

View Source
Link to this function

insert_or_update(multi, changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil, model_key: :model, version_key: :version, initial_version_key: :initial_version, ecto_options: []])

View Source
Link to this function

make_version_struct(version, model, options)

View Source

See PaperTrail.Serializer.make_version_struct/3.

See Ecto.Multi.merge/2.

Link to this function

merge(multi, mod, fun, args)

View Source

See Ecto.Multi.merge/4.

See Ecto.Multi.new/0.

See Ecto.Multi.prepend/2.

See Ecto.Multi.run/3.

Link to this function

run(multi, name, mod, fun, args)

View Source

See Ecto.Multi.run/5.

See PaperTrail.Serializer.serialize/1.

See Ecto.Multi.to_list/1.

Link to this function

update(multi, changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil, model_key: :model, version_key: :version, initial_version_key: :initial_version, ecto_options: []])

View Source