dbdial

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, dbConf DatabaseConfig) (*gorm.DB, error)

Types

type DatabaseConfig

type DatabaseConfig interface {
	GetAutoMigrate() bool
	GetHost() string
	GetName() string
	GetPassword() string
	GetPort() uint32
	GetSslMode() string
	GetUser() string
}

Jump to

Keyboard shortcuts

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