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 error() :: Smokestack.RelatedBuilder.error() | Smokestack.ManyBuilder.error() | Ash.Error.t()
@type load_option() :: {:load, Smokestack.recursive_atom_list()}
A nested keyword list of associations, calculations and aggregates to load
@type option() :: load_option() | Smokestack.ManyBuilder.option() | Smokestack.RelatedBuilder.option()
@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.