mysql

package
v0.0.0-...-e272627 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

type Config

type Config struct {
	Host                  string
	Port                  string
	UserName              string
	PassWord              string
	DataBase              string
	Charset               string
	MaxIdleConnections    int
	MaxOpenConnections    int
	MaxConnectionLifeTime time.Duration
	LogLevel              int
	Logger                logger.Interface
}

type OpentracingPlugin

type OpentracingPlugin struct{}

func (*OpentracingPlugin) Initialize

func (op *OpentracingPlugin) Initialize(db *gorm.DB) (err error)

func (*OpentracingPlugin) Name

func (op *OpentracingPlugin) Name() string

Jump to

Keyboard shortcuts

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