definition

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	RowID         string
	Name          string
	DBType        string
	Unique        bool
	Nullable      bool
	AutoGenerated bool
	PK            bool
	Default       string
	Comment       string
	Enum          []string
	FreeText      string
}

func ConvertCol

func ConvertCol(c drivers.Column, tablePK *drivers.PrimaryKey, driverName string) Column

type CommonInfo added in v1.1.0

type CommonInfo struct {
	TablesByConnection []drivers.Table
	DriverName         string
	IgnoreAttributes   map[string]int
	IsIgnoreView       bool
	RawMermaid         string
}

func (*CommonInfo) IsShownAttr added in v1.2.0

func (c *CommonInfo) IsShownAttr(attr string) bool

type Definition

type Definition interface {
	EnableMermaid()
	IsDefinition() bool
	IsMermaid() bool

	Upsert(context.Context) error
	Mermaid(context.Context) error
}

type Table

type Table struct {
	PageID  string
	Name    string
	Columns []Column
}

Jump to

Keyboard shortcuts

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