diff

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Diff

func Diff(ctx context.Context, d adaptor.Dialect, curr, next builder.Table) frag.Fragment

Diff curr and next table for migration curr from catalog scanning next from current tables define from code ast

Types

type ActType

type ActType int8
const (
	ACT_DROP_IDX ActType = iota + 1
	ACT_DROP_COL
	ACT_KEEP_COL
	ACT_RENAME_COL
	ACT_MODIFY_COL
	ACT_CREATE_COL
	ACT_CREATE_IDX
	ACT_CREATE_TABLE
)

type Mode

type Mode uint8
const (
	MODE_CREATE_TABLE Mode = 1 << iota
	MODE_DRY_RUN
)

Jump to

Keyboard shortcuts

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