dynddl2

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynDDL

type DynDDL struct {
	// contains filtered or unexported fields
}

func New

func New(session db.Session, sharedLock service.DyndbLock, logger zerolog.Logger) *DynDDL

func (*DynDDL) MetaNewColumn

func (d *DynDDL) MetaNewColumn(tenantId, gslug, tslug string, model *entities.Column) (err error)

func (*DynDDL) MetaNewGroup

func (d *DynDDL) MetaNewGroup(tenantId string, model *xbprint.NewTableGroup) (err error)

func (*DynDDL) MetaNewTable

func (d *DynDDL) MetaNewTable(tenantId, gslug string, model *xbprint.NewTable) error

func (*DynDDL) MetaRollbackColumn

func (d *DynDDL) MetaRollbackColumn(tenantId, gslug, tslug, cslug string)

func (*DynDDL) MetaRollbackGroup

func (d *DynDDL) MetaRollbackGroup(tenantId, gslug string)

func (*DynDDL) MetaRollbackTable

func (d *DynDDL) MetaRollbackTable(tenantId, gslug, tslug string)

func (*DynDDL) RunNew

func (d *DynDDL) RunNew(tenantId string, migctx MigrateContext) error

func (*DynDDL) RunUpdate

func (d *DynDDL) RunUpdate(tenantId string, migctx MigrateContext) error

type MigrateContext

type MigrateContext struct {
	BaseSchema  *xbprint.NewTableGroup
	StmtString  string
	PostItems   []PostDDLItem
	Siblings    map[string]map[string]string
	Options     step.MigrateOptions
	Gslug       string
	LastMigHead string
	NextMigHead string
}

type PostDDLItem

type PostDDLItem struct {
	Name  string
	Mtype string
	Data  any
	Stmt  string
}

Jump to

Keyboard shortcuts

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