snapshot

package
Version: v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimCharacterSetFromRawCreateTableSQL

func TrimCharacterSetFromRawCreateTableSQL(sql string) string

func TrimCollateOptionFromCols

func TrimCollateOptionFromCols(create *ast.CreateTableStmt)

func TrimCollateOptionFromCreateTable

func TrimCollateOptionFromCreateTable(create *ast.CreateTableStmt)

func TrimConstraintCheckFromCreateTable

func TrimConstraintCheckFromCreateTable(create *ast.CreateTableStmt)

Types

type Snapshot

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

func From

func From(tx *gorm.DB, ignore ...string) (s *Snapshot, err error)

func (*Snapshot) DDLNodes

func (s *Snapshot) DDLNodes() []ast.DDLNode

func (*Snapshot) HasAnyTable

func (s *Snapshot) HasAnyTable() bool

func (*Snapshot) RecoverTo

func (s *Snapshot) RecoverTo(tx *gorm.DB) error

func (*Snapshot) TableNames

func (s *Snapshot) TableNames() []string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL