mysqldriver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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 Server

type Server struct {
	Host               string `env:""`
	Port               int    `env:""`
	User               string `env:""`
	Password           string `env:""`
	DbName             string `env:""`
	ConnectionOptions  string `env:""`
	MaxOpenConns       int
	MaxIdleConns       int
	ConnMaxIdleSeconds int

	// database to magrate
	MigrationDB *migration.Database `env:"-"`
	// contains filtered or unexported fields
}

func (*Server) GormDB

func (my *Server) GormDB() *gorm.DB

func (*Server) Init

func (my *Server) Init()

func (*Server) Migrate

func (my *Server) Migrate() error

func (*Server) SetDefaults

func (my *Server) SetDefaults()

Jump to

Keyboard shortcuts

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