ugorm

package
v0.9.5-rc Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(driver string, dialect DialectFunc) (err error)

Types

type DBHelper

type DBHelper interface {
	WithContext(ctx context.Context) (db *gorm.DB)
}

type DialectFunc

type DialectFunc func(dsn string) gorm.Dialector

func GetDialect

func GetDialect(driver string) (dialect DialectFunc, err error)

type Hook

type Hook interface {
	Fire(e ull.Entry) (err error)
	Levels() (levels []logger.LogLevel)
}

type Hooks

type Hooks map[logger.LogLevel][]Hook

func (Hooks) Fire

func (c Hooks) Fire(level logger.LogLevel, e ull.Entry)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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