model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnDiff

type ColumnDiff struct {
	OldColumn *table.Column
	NewColumn *table.Column
}

type Diff

type Diff struct {
	DeletedTables  []*table.Table
	AddedTables    []*table.Table
	ModifiedTables []*TableDiff
	// contains filtered or unexported fields
}

func CreateDiff

func CreateDiff(published, next *Model) *Diff

type Model

type Model struct {
	Meta   *meta.Model
	Domain *domain.Model
	Graph  *graph.Model
}
var SystemModel *Model

func New

func New(c *meta.UMLMeta, metaId uint64) *Model

type ModifyAtom

type ModifyAtom struct {
	ExcuteSQL string
	UndoSQL   string
}

type TableDiff

type TableDiff struct {
	OldTable      *table.Table
	NewTable      *table.Table
	DeleteColumns []*table.Column
	AddColumns    []*table.Column
	ModifyColumns []ColumnDiff //删除列索引,并重建
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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