er

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERCol

type ERCol struct {
	Name     string   `json:"name"`
	DataType string   `json:"dataType"`
	Comment  string   `json:"comment"`
	Desc     string   `json:"desc"`
	Rel      []string `json:"rel"`
}

type ERDatabase

type ERDatabase struct {
	Name   string              `json:"name"`
	Tables map[string]*ERTable `json:"tables"`
}

func DatabaseERFromDB

func DatabaseERFromDB(database *sqlx.Database, dialect builder.Dialect) *ERDatabase

type ERKey

type ERKey struct {
	Name      string   `json:"name"`
	Method    string   `json:"method"`
	IsUnique  bool     `json:"isUnique"`
	IsPrimary bool     `json:"isPrimary"`
	Cols      []string `json:"cols"`
}

type ERTable

type ERTable struct {
	Name string            `json:"name"`
	Cols map[string]*ERCol `json:"cols"`
	Keys map[string]*ERKey `json:"keys"`
}

Jump to

Keyboard shortcuts

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