Macaw.Frame.Diagrams.Er (macaw_frame v0.1.0)

Copy Markdown View Source

diagrams.er (spec/13 §7.3): a layered DAG of entities joined by relations with crow's-foot ends, in a layout frame over the layered step. Its slots are Macaw.Frame.TextForms.Er's: nodes (id, label holding the attributes' lines, shape opt, group opt), edges (source, target, label, head, tail, line, each opt but the ends) and attributes (entity, name, type, key opt), filled by a use site's text (erDiagram / A ||--o{ B : has) or bound to sources.

iex> Macaw.Frame.Diagrams.Er.id()
"diagrams.er"

Summary

Functions

What it draws, for a person and a builder's library.

Its fixtures (spec/14 §1): an order book.

The fragment: the text form's design.

The fragment's id in the catalog store.

What the fragment is: a whole design, or layers placed in one.

Its namespace (spec/13 §2).

Its parameters (spec/13 §3, §7.3): the conventions a diagram takes.

Its slots: the text form's.

The parameters a read text sets: none, its header names no parameter.

Its text form (spec/13 §7.3).

Functions

doc()

@spec doc() :: String.t()

What it draws, for a person and a builder's library.

fixtures()

@spec fixtures() :: [map()]

Its fixtures (spec/14 §1): an order book.

fragment()

@spec fragment() :: map()

The fragment: the text form's design.

id()

@spec id() :: String.t()

The fragment's id in the catalog store.

kind()

@spec kind() :: :design | :layers

What the fragment is: a whole design, or layers placed in one.

namespace()

@spec namespace() :: :charts | :maps | :diagrams

Its namespace (spec/13 §2).

parameters()

@spec parameters() :: [{String.t(), map()}]

Its parameters (spec/13 §3, §7.3): the conventions a diagram takes.

slots()

@spec slots() :: %{required(String.t()) => map()}

Its slots: the text form's.

text_bind(design)

@spec text_bind(map()) :: %{required(String.t()) => term()}

The parameters a read text sets: none, its header names no parameter.

text_form()

@spec text_form() :: module()

Its text form (spec/13 §7.3).