operation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateTableType = "CREATE_TABLE"
	RemoveTableType = "REMOVE_TABLE"
	RenameTableType = "RENAME_TABLE"

	CreateColumnType = "CREATE_COLUMN"
	ChangeColumnType = "CHANGE_COLUMN"
	RemoveColumnType = "REMOVE_COLUMN"
	RenameColumnType = "RENAME_COLUMN"

	CreateIndexType = "CREATE_INDEX"
	ChangeIndexType = "CHANGE_INDEX"
	RemoveIndexType = "REMOVE_INDEX"
	RenameIndexType = "RENAME_INDEX"

	DDLType = "DDL"
)

Variables

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Type string `json:"type"`
	Spec any    `json:"spec"`
}

func ParseOperations

func ParseOperations(rawOperations string) []Operation

func (*Operation) IsTableOperation

func (op *Operation) IsTableOperation() bool

func (*Operation) UnmarshalJSON

func (op *Operation) UnmarshalJSON(data []byte) error

type RawOperation

type RawOperation struct {
	Type string          `json:"type"`
	Spec json.RawMessage `json:"spec"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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