mysql

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 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 GormMySQLConfig

type GormMySQLConfig struct {
	ry.Configuration
	App *ry.Application
}

func (*GormMySQLConfig) GetAutoMigrateMySQLDB

func (g *GormMySQLConfig) GetAutoMigrateMySQLDB(params *GormMySQLParameter) *GormMySQLRepo

type GormMySQLParameter

type GormMySQLParameter struct {
	ry.Parameter
	Host      *string `value:"rady.mysql.host" default:"127.0.0.1"`
	Port      *string `value:"rady.mysql.port" default:"3306"`
	Database  *string `value:"rady.mysql.database"`
	Username  *string `value:"rady.mysql.username"`
	Password  *string `value:"rady.mysql.password"`
	Charset   *string `value:"rady.mysql.charset" default:"utf8"`
	ParseTime *string `value:"rady.mysql.parseTime" default:"True"`
	Loc       *string `value:"rady.mysql.loc" default:"Local"`
}

type GormMySQLRepo

type GormMySQLRepo struct {
	ry.Repository
	Db *gorm.DB
}

Jump to

Keyboard shortcuts

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