Ecto.ERD.Node (ecto_erd v0.1.0) View Source

Node struct

  • If source is nil, then schema_module cannot be nil and node describes embedded schema.
  • If source is not nil and schema_module is not nil, then node describes regular schema.
  • If schema_module is nil, then source cannot be nil and node describes a source (table) which was automatically inferred from many-to-many relations.
  • If cluster is nil, then the node will be rendered outside any cluster..

Link to this section Summary

Functions

Set a cluster for a given node.

Link to this section Types

Specs

t() :: %Ecto.ERD.Node{
  cluster: nil | String.t(),
  fields: [struct()],
  schema_module: nil | module(),
  source: nil | String.t()
}

Link to this section Functions

Link to this function

set_cluster(node, cluster)

View Source

Specs

set_cluster(t(), nil | String.t()) :: t()

Set a cluster for a given node.