View Source Smokestack.RecordBuilder (smokestack v0.9.1)

Handles the insertion of new records.

Summary

Types

A nested keyword list of associations, calculations and aggregates to load

Functions

Run the factory and insert a record, or records.

Types

@type load_option() :: {:load, Smokestack.recursive_atom_list()}

A nested keyword list of associations, calculations and aggregates to load

@type result() :: Ash.Resource.record() | [Ash.Resource.record()]

Functions

@spec build(Smokestack.Dsl.Factory.t(), [option()]) ::
  {:ok, result()} | {:error, error()}

Run the factory and insert a record, or records.