schema

package
v0.0.0-...-3d4e37e Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedInterface

type ChangedInterface interface {
	Column() ColumnChangedInterface
	Index() IndexChangedInterface
}

type ColumnChangedInterface

type ColumnChangedInterface interface {
	Adds() []ColumnInfoInterface
	Changes() []ColumnMetaChangedInterface
	Deletes() []ColumnInfoInterface
}

type ColumnInfoInterface

type ColumnInfoInterface interface {
	Name() string
	Default() string
	Nullable() bool
	Type() string
	Length() int
	NumLen() int
	Scale() int
	DateTimeLen() int
	Comment() string
	Extra() string
	HasChanged(other ColumnInfoInterface) bool
	HasDefault() bool
	AutoIncrement() bool
	Key() string
}

type ColumnMetaChangedInterface

type ColumnMetaChangedInterface interface {
	Old() ColumnInfoInterface
	New() ColumnInfoInterface
}

type IndexChangedInterface

type IndexChangedInterface interface {
	Adds() []IndexInfoInterface
	Deletes() []IndexInfoInterface
}

type IndexInfoInterface

type IndexInfoInterface interface {
	Name() string
	Metas() []IndexMetaInterface
	Add(index IndexMetaInterface) IndexInfoInterface
	Type() ksql.IndexType
	HasChanged(other IndexInfoInterface) bool
	Columns() []string
}

type IndexMetaInterface

type IndexMetaInterface interface {
	Name() string
	NonUnique() int
	Seq() int
	Column() string
	Comment() string
	IndexComment() string
	Type() ksql.IndexType
	HasChanged(other IndexMetaInterface) bool
}

type SchemaInfoInterface

type SchemaInfoInterface interface {
	Name() string
	Charset() string
	Collation() string
	HasChanged(other SchemaInfoInterface) bool
	HasTable(table TableInfoInterface) bool
	Tables() []TableInfoInterface
}

type TableInfoInterface

type TableInfoInterface interface {
	Name() string
	Charset() string
	Collation() string
	Comment() string
	Engine() string
	Fields() []ColumnInfoInterface
	HasChanged(other TableInfoInterface) bool
	HasColumn(column ColumnInfoInterface) bool
	Indexes() []IndexInfoInterface
	HasIndex(index IndexInfoInterface) bool
	GetIndex(index string) IndexInfoInterface
	CheckChanges(other TableInfoInterface) ChangedInterface
	GetColumn(column string) ColumnInfoInterface
}

Jump to

Keyboard shortcuts

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