db

package
v0.0.0-...-6e5bb36 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MysqlDialectParam ...
	MysqlDialectParam = "mysql"
	// PgsqlDialectParam ...
	PgsqlDialectParam = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB ...

func (*DB) Manager

func (db *DB) Manager(dialect string) (dbraw *gorm.DB, err error)

Manager ...

type IDB

type IDB interface {
	Manager(string) (*gorm.DB, error)
}

IDB ...

func New

func New(callbacks ...Option) IDB

New ...

type Option

type Option func(*DB)

Option ...

func WithConfig

func WithConfig(config config.IConfig) Option

WithConfig ....

Jump to

Keyboard shortcuts

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