mysqlx

package
v0.0.0-...-8fc9d4d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEnv

func ReadEnv(cfg *Config) error

ReadEnv - 指定したenvfileからMysqlに関する設定を読み込む

Types

type Config

type Config struct {
	User      string `split_words:"true"`
	Password  string `split_words:"true"`
	Protocol  string `split_words:"true"`
	Host      string `split_words:"true"`
	Port      string `split_words:"true"`
	DBName    string `split_words:"true"`
	Charset   string `split_words:"true"`
	ParseTime string `split_words:"true"`
	Loc       string `split_words:"true"`
}

Config - Mysqlの接続情報に関する設定

func (*Config) Connect

func (c *Config) Connect() (*sql.DB, error)

Connect - Mysqlに接続

Jump to

Keyboard shortcuts

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