View Source Ash.Resource.Transformers.DefaultPrimaryKey (ash v1.53.3)

Creates the default primary key if one applies.

Currently, the only resources that get a default primary key are embedded resources. The reason for this is that resources must have a primary key, and embedded resources actually make sense without one. But this is simulated with a private uuid primary key.

Link to this section Summary

Link to this section Functions

Callback implementation for Ash.Dsl.Transformer.after_compile?/0.

Callback implementation for Ash.Dsl.Transformer.after?/1.

Callback implementation for Ash.Dsl.Transformer.before?/1.

Link to this function

transform(resource, dsl_state)

View Source

Callback implementation for Ash.Dsl.Transformer.transform/2.