gormutil

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate(models []interface{})

func DB

func DB() *gorm.DB

func Init

func Init(conf Config, debug bool)

func New

func New(conf Config) (*gorm.DB, error)

Types

type Config

type Config struct {
	Driver string `yaml:"driver"`
	DSN    string `yaml:"dsn"`
}

Jump to

Keyboard shortcuts

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