ora2uml

package module
v0.0.0-...-91466db Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 8 Imported by: 0

README

ora2uml

Generate PlantUML dot files from Oracle data dictionary. Idea and PlantUML template from QuantumGhost's exampl.puml Gits.

Rewrite ora2uml.net in Go to use the text/template framework.

Documentation

Index

Constants

View Source
const (
	TemplPlantUML string = `` /* 356-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Export

func Export(model Model, templ string)

Types

type Config

type Config struct {
	User           ConfigUser     `json:"User"`
	Database       ConfigDatabase `json:"Database"`
	Tables         []ConfigTable  `json:"Tables"`
	ColumnsIgnored []string       `json:"ColumnsIgnored"`
}

func ReadConfig

func ReadConfig(filename string) (Config, error)

func (Config) ConnectionString

func (config Config) ConnectionString() string

type ConfigDatabase

type ConfigDatabase struct {
	Host        string `json:"Host"`
	Port        int    `json:"Port"`
	ServiceName string `json:"ServiceName"`
}

type ConfigTable

type ConfigTable struct {
	Owner string   `json:"Owner"`
	Name  string   `json:"Name"`
	Tags  []string `json:"Tags"`
	Color int      `json:"Color"`
}

type ConfigUser

type ConfigUser struct {
	UserId   string `json:"UserId"`
	Password string `json:"Password"`
}

type Model

type Model struct {
	Tables []ModelTable
}

func ReadTables

func ReadTables(config Config) (Model, error)

func (*Model) AddTable

func (model *Model) AddTable(table ModelTable)

type ModelColumn

type ModelColumn struct {
}

type ModelTable

type ModelTable struct {
	Owner     string
	TableName string
	Comments  string
	Columns   []ModelColumn
}

func (ModelTable) FullName

func (table ModelTable) FullName() string

Directories

Path Synopsis
cmd
ora2uml command

Jump to

Keyboard shortcuts

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