gorm

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = New(Config{
		SlowThreshold: 200 * time.Millisecond,
		LogLevel:      logger.Info,
	})
)
View Source
var ErrRecordNotFound = errors.New("record not found")

Functions

func New

func New(config Config) logger.Interface

Types

type Config

type Config struct {
	IgnoreRecordNotFoundError bool
	SlowThreshold             time.Duration
	LogLevel                  logger.LogLevel
}

Jump to

Keyboard shortcuts

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