gormDatabase

package
v0.0.0-...-03cd4a3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQL      = "mysql"
	PostgreSQL = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Gorm

type Gorm interface {
	Connect() (*gorm.DB, error)
}

func NewGorm

func NewGorm(cfg *config.Config) Gorm

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) Connect

func (o *Options) Connect() (*gorm.DB, error)

Jump to

Keyboard shortcuts

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