arch.diagrams
Это содержимое пока не доступно на вашем языке.
Package arch.diagrams · Version 0.1.0
Data-modelling primitives for entity / ER-style diagrams. Provides a
table module kind and a column interface kind so you can draw schema
and relationship diagrams — tables with typed columns and the keys
linking them — in the same workspace as the rest of your architecture.
Widgets render tables in the familiar header-plus-rows shape. Import with
use table, column from arch.diagrams.
| Type | Extends | Description |
|---|---|---|
column | interface | A table column — its name is the column name and its dtype field the type annotation |
table | module | Tabular structure — one row per column interface. The dtype field on each column becomes its type annotation, e.g. table Users { column id { dtype: “uuid” } column email { dtype: “text” } } |
operation | interface | A class operation / method — a member of a class box |
class | module | Two-compartment UML class box, e.g. class Account { column id { dtype: “uuid” } column balance { dtype: “money” } operation deposit { returns: “void” } operation withdraw { returns: “bool” } } |
member | interface | An enum member — one named value of an enum box |
enum | module | Enumeration, e.g. enum OrderStatus { member pending member shipped { value: 1 } member delivered { value: 2 } } |
note | module | Annotation sticky, e.g. note Caveat { “Auth tokens expire after 15 min — refresh flow not shown.” } |
state | module | A state-machine state — a node in a state diagram |
initial_state | state | The initial pseudo-state a machine starts in — a small filled dot |
final_state | state | A terminal state — the double-ring UML final marker |
See also: package.archspace reference · The standard library.