mermaid

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mermaid provides functionality for converting database schemas into Mermaid JS ERD format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

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

Target represents a Mermaid JS diagram formatter that converts database schemas into Mermaid JS format.

func NewTarget

func NewTarget() (*Target, error)

NewTarget creates a new Mermaid JS diagram formatter instance.

func (*Target) Capabilities

func (t *Target) Capabilities() dberd.TargetCapabilities

Capabilities returns target capabilities.

func (*Target) FormatSchema

func (t *Target) FormatSchema(_ context.Context, s dberd.Schema) (dberd.FormattedSchema, error)

FormatSchema converts a database schema into Mermaid JS ERD format.

func (*Target) RenderSchema

func (t *Target) RenderSchema(_ context.Context, _ dberd.FormattedSchema) ([]byte, error)

RenderSchema is unsupported for mermaid target.

Jump to

Keyboard shortcuts

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