Dagger.Generator (dagger v0.20.7)

Copy Markdown View Source

Dagger.Generator

Summary

Functions

The generated changeset from the last run

Whether the generator complete

Return the description of the generator

Whether changeset from the last generator run is empty or not

A unique identifier for this Generator.

Return the fully qualified name of the generator

The original module in which the generator has been defined

The path of the generator within its module

Execute the generator

Types

t()

@type t() :: %Dagger.Generator{client: term(), query_builder: term()}

Functions

changes(generator)

@spec changes(t()) :: Dagger.Changeset.t()

The generated changeset from the last run

completed(generator)

@spec completed(t()) :: {:ok, boolean()} | {:error, term()}

Whether the generator complete

description(generator)

@spec description(t()) :: {:ok, String.t()} | {:error, term()}

Return the description of the generator

empty?(generator)

@spec empty?(t()) :: {:ok, boolean()} | {:error, term()}

Whether changeset from the last generator run is empty or not

id(generator)

@spec id(t()) :: {:ok, Dagger.GeneratorID.t()} | {:error, term()}

A unique identifier for this Generator.

name(generator)

@spec name(t()) :: {:ok, String.t()} | {:error, term()}

Return the fully qualified name of the generator

original_module(generator)

@spec original_module(t()) :: Dagger.Module.t()

The original module in which the generator has been defined

path(generator)

@spec path(t()) :: {:ok, [String.t()]} | {:error, term()}

The path of the generator within its module

run(generator)

@spec run(t()) :: t()

Execute the generator