diagram

package
v0.0.0-...-9165781 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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

type ErdAttributeKey string

type ErdColumnData

type ErdColumnData struct {
	Name         string
	DataType     string
	Description  string
	AttributeKey ErdAttributeKey
}

type ErdConstraintData

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

type ErdDiagramData

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

type ErdRelationType

type ErdRelationType string

type ErdTableData

type ErdTableData struct {
	Name    string
	Columns []ErdColumnData
}

Jump to

Keyboard shortcuts

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