internal

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysql

func GetMysql() (*gorm.DB, error)

func InitConfig

func InitConfig(path string) error

func Main

func Main(path string) error

func NewTask

func NewTask[A interface{ TableName() string }, B any, C any](gormDB *gorm.DB, mongoDB *mongo.Database, mongoDBInit func(db *mongo.Database) (B, error), convert func(v A) C) error

NewTask A mysql table B mongodb model C mongodb table

func SetMongoDataVersion

func SetMongoDataVersion(db *mongo.Database, curver string) error

Types

This section is empty.

Directories

Path Synopsis
mysql

Jump to

Keyboard shortcuts

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