dbdial

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 10 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