mermaid

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Name   string
	Fields []*EntityField
}

type EntityField

type EntityField struct {
	Name     string
	DataType string
	KeyType  KeyType
}

type ErDiagram

type ErDiagram struct {
	// contains filtered or unexported fields
}

func NewErDiagram

func NewErDiagram() *ErDiagram

func (*ErDiagram) AddEntity

func (d *ErDiagram) AddEntity(entity *Entity)

func (*ErDiagram) AddRelation

func (d *ErDiagram) AddRelation(relation *Relation)

func (*ErDiagram) Build

func (d *ErDiagram) Build() string

type KeyType

type KeyType string
const (
	KeyTypeUnspecified KeyType = ""
	KeyTypePK          KeyType = "PK"
	KeyTypeFK          KeyType = "FK"
	KeyTypeUK          KeyType = "UK"
)

type Relation

type Relation struct {
	Owner   string
	Related string
	Action  string
}

Jump to

Keyboard shortcuts

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