tablesync

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAbandonFields

func CheckAbandonFields(ctx context.Context, tables []Table)

CheckAbandonFields 检查table中该废弃的字段

func GetTableMeta

func GetTableMeta(object interface{}, key string) *gvar.Var

func ListEq

func ListEq[T comparable](a, b []T) bool

Types

type Syncer

type Syncer struct {
	Tables         []Table
	DatabaseType   string
	DatabaseDriver database.Database
}

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, db gdb.DB) error

type Table

type Table any

type TableMeta

type TableMeta g.Meta

Jump to

Keyboard shortcuts

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