mysql

package
v0.0.0-...-02d6ec1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

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

Connect - 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の接続情報に関する設定

Jump to

Keyboard shortcuts

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