data

package
v0.0.0-...-0e7d11b Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *Options) (*gorm.DB, error)

Types

type Data

type Data struct {
	Db *gorm.DB
}

func (*Data) DB

func (this *Data) DB(ctx context.Context) *gorm.DB

type Options

type Options struct {
	Address  string
	UserName string
	Password string
	DBName   string
	Logger   logger.Writer
	Charset  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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