mysql

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatasource

func InitDatasource(dataSources []DataSource, isUseSSH bool, dbCh chan DBInstance)

Types

type DBInstance added in v1.0.9

type DBInstance struct {
	DB     *sql.DB
	Config DataSource
}

type DataSource added in v1.0.3

type DataSource struct {
	Type     string `yaml:"type"`
	URL      string `yaml:"url"`
	Database string `yaml:"database"`
	Tag      string `yaml:"tag"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	UseSSH   bool   `yaml:"use_ssh"`
}

type GormInstance added in v1.1.2

type GormInstance struct {
	DB     *gorm.DB
	Config DataSource
}

func InitGormDatasource

func InitGormDatasource(datasource []DataSource, isUseSSH bool, loggingLevel string) []GormInstance

Jump to

Keyboard shortcuts

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