mysql

package
v1.0.0-beta.10 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMYSQL

func WithMYSQL(cfg Config) nanny.OptionFn

WithMYSQL intializes an MySQL instance and registers it to the Application.

func WithMYSQLByDSN

func WithMYSQLByDSN(dsn string) nanny.OptionFn

WithMYSQLByDSN is a short form of WithMYSQL by using dsn only.

Types

type Config

type Config struct {
	DriverName                string
	DSN                       string
	Conn                      gorm.ConnPool
	SkipInitializeWithVersion bool
	DefaultStringSize         uint
	DisableDatetimePrecision  bool
	DontSupportRenameIndex    bool
	DontSupportRenameColumn   bool
	GormConfig                gorm.Config
}

Config defines the config for the MYSQL connection.

Jump to

Keyboard shortcuts

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