Documentation ¶ Index ¶ func CheckAbandonFields(ctx context.Context, tables []Table) func GetTableMeta(object interface{}, key string) *gvar.Var func ListEq[T comparable](a, b []T) bool type Syncer func (s *Syncer) Sync(ctx context.Context, db gdb.DB) error type Table type TableMeta 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 Source Files ¶ View all Source files abandon_fields.go code.go sync.go util.go Click to show internal directories. Click to hide internal directories.