sqldump

package
v0.0.0-...-22478fa Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlDump

type SqlDump []*Table

func NewSqlDump

func NewSqlDump(filename string) SqlDump

func (SqlDump) Compare

func (dump SqlDump) Compare(oldDump SqlDump) []*TableChanges

func (SqlDump) GetTable

func (dump SqlDump) GetTable(name string) *Table

type Table

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

func NewTable

func NewTable(create *sqlparser.CreateTable) *Table

func (*Table) Compare

func (table *Table) Compare(oldTable *Table) *TableChanges

func (*Table) GetName

func (table *Table) GetName() string

func (*Table) RowIterator

func (table *Table) RowIterator() func() (sqlparser.ValTuple, bool)

type TableChanges

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

func (*TableChanges) IsEmpty

func (tc *TableChanges) IsEmpty() bool

func (*TableChanges) Write

func (tc *TableChanges) Write(file *os.File)

type TableUpdate

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

Jump to

Keyboard shortcuts

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