mysql

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mysql provides MysqlConfig and registers the GORM mysql dialector on import.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InitDb                    bool
	SyncForce                 bool
	SyncVerbose               bool
	AliasName                 string
	UserName                  string
	Password                  string
	Host                      string
	Port                      int
	MaxIdle                   int
	MaxConn                   int
	DbName                    string
	Charset                   string
	DisableParseTime          bool
	Loc                       string
	DefaultStringSize         uint
	DisableDatetimePrecision  bool
	DontSupportRenameIndex    bool
	DontSupportRenameColumn   bool
	SkipInitializeWithVersion bool
}

Config mysql connection settings.

func (*Config) Build

func (c *Config) Build() (b persistence.BaseConfig)

type OpenOpts

type OpenOpts struct {
	DefaultStringSize         uint
	DisableDatetimePrecision  bool
	DontSupportRenameIndex    bool
	DontSupportRenameColumn   bool
	SkipInitializeWithVersion bool
}

OpenOpts carries mysql driver options from Config.Build.

Jump to

Keyboard shortcuts

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