mysql

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlConfigs

type MysqlConfigs struct {
	URL                            string `json:"URL" yaml:"URL"`
	Port                           string `json:"Port" yarml:"Port"`
	UserName                       string `json:"userName" yaml:"userName"`
	Password                       string `json:"password" yaml:"password"`
	DBName                         string `json:"dbName" yaml:"DBName"`
	FullConnectionString           string `json:"fullConnection"`
	MysqlOpenPrometheus            bool   `json:"openPrometheus"`
	MysqlPrometheusPort            int    `json:"prometheusPort"`
	MysqlPrometheusRefreshInterval int    `json:"prometheusRefreshInterval"`
}

func (*MysqlConfigs) String

func (c *MysqlConfigs) String() string

type MysqlDriver

type MysqlDriver struct {
	Configs *MysqlConfigs
}

func (*MysqlDriver) Connect

func (d *MysqlDriver) Connect() (*gorm.DB, *mongo.Client, error)

func (*MysqlDriver) Type added in v0.1.2

func (d *MysqlDriver) Type() uint8

Jump to

Keyboard shortcuts

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