db_importer

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 11 Imported by: 0

README

db-importer

DB Importer

Documentation

Index

Constants

View Source
const (
	// MigrateStatusSuccess success
	MigrateStatusSuccess = "SUCCESS"
	// MigrateStatusSkipped skipped
	MigrateStatusSkipped = "SKIPPED"
)

Variables

This section is empty.

Functions

func Migrate

func Migrate(configRoot string) error

Types

type DBImporterMigrate

type DBImporterMigrate struct {
	ID        string `gorm:"type:varchar(255);primary_key;"`      // fileName as ID
	Status    string `gorm:"type:varchar(20);not null;default:0"` // status: pending, success, failed, skipped
	FailedMsg string `gorm:"type:text"`                           // failed msg
	ExecStart time.Time
	ExecEnd   time.Time
}

DBImporterMigrate model

Jump to

Keyboard shortcuts

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