db

package
v0.0.0-...-cab7180 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbOrm

type DbOrm struct {
	Db *gorm.DB
	M  *MigrateOrm
}

func NewDbOrm

func NewDbOrm(dsn string, l logger.LogLevel) (*DbOrm, error)

func (*DbOrm) Migrate

func (p *DbOrm) Migrate() error

type MigrateOrm

type MigrateOrm struct {
	Db *gorm.DB
	// contains filtered or unexported fields
}

func NewMigrateOrm

func NewMigrateOrm(db *gorm.DB) *MigrateOrm

func (*MigrateOrm) Migrate

func (m *MigrateOrm) Migrate() error

Jump to

Keyboard shortcuts

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