data

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDb

func GetDb(ctx context.Context, provider dal.ConstDbProvider, connName dal.ConnName) *gorm.DB

func ToSQLDB

func ToSQLDB(db *gorm.DB) *sql.DB

ToSQLDB get the sql.DB

Types

type Migrator

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

func NewMigrator

func NewMigrator(provider dal.ConstDbProvider, connName dal.ConnName) *Migrator

func (*Migrator) Seed

func (m *Migrator) Seed(ctx context.Context, sCtx *seed.Context) error

Jump to

Keyboard shortcuts

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