diagram

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagram

type Diagram interface {
	Create(result *database.Result) error
}

func NewDiagram

func NewDiagram(config config.MermerdConfig) Diagram

type ErdAttributeKey added in v0.4.0

type ErdAttributeKey string

type ErdColumnData added in v0.2.0

type ErdColumnData struct {
	Name          string
	DataType      string
	Description   string
	AttributeKeys []ErdAttributeKey
}

type ErdConstraintData added in v0.2.0

type ErdConstraintData struct {
	PkTableName     string
	FkTableName     string
	Relation        ErdRelationType
	ConstraintLabel string
}

type ErdDiagramData added in v0.2.0

type ErdDiagramData struct {
	EncloseWithMermaidBackticks bool
	Tables                      []ErdTableData
	Constraints                 []ErdConstraintData
}

type ErdRelationType added in v0.2.0

type ErdRelationType string

type ErdTableData added in v0.2.0

type ErdTableData struct {
	Name    string
	Columns []ErdColumnData
}

type RelationshipLabelMap added in v0.10.0

type RelationshipLabelMap interface {
	AddRelationshipLabel(label config.RelationshipLabel)
	LookupRelationshipLabel(pkName, fkName string) (label config.RelationshipLabel, found bool)
}

func BuildRelationshipLabelMap added in v0.10.0

func BuildRelationshipLabelMap(labels []config.RelationshipLabel) RelationshipLabelMap

func BuildRelationshipLabelMapFromConfig added in v0.10.0

func BuildRelationshipLabelMapFromConfig(c config.MermerdConfig) RelationshipLabelMap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL