mysql

package
v0.0.0-...-2741532 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection(data *ConnectionData) (*gorm.DB, error)

Types

type ConnectionData

type ConnectionData struct {
	Host     string
	Schema   string
	Username string
	Password string
	Dialect  string
	Url      string
}

func (*ConnectionData) SetupBetaConnectionData

func (cd *ConnectionData) SetupBetaConnectionData(username, password, host, schema, url string) *ConnectionData

func (*ConnectionData) SetupLocalConnectionData

func (cd *ConnectionData) SetupLocalConnectionData(username, password, host, schema, url string) *ConnectionData

func (*ConnectionData) SetupProdConnectionData

func (cd *ConnectionData) SetupProdConnectionData() *ConnectionData

func (*ConnectionData) SetupTestConnectionData

func (cd *ConnectionData) SetupTestConnectionData() *ConnectionData

Jump to

Keyboard shortcuts

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