gormutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormLogger

func GormLogger(level string) logger.Interface

GormLogger create a grom logger interface.

func IgnoreTraceContext

func IgnoreTraceContext(parent context.Context) context.Context

IgnoreTraceContext returns a context indicates that no trace log is required.

func IsDuplicateError

func IsDuplicateError(err error) bool

IsDuplicateError checks if the given error is duplicate entry error.

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError checks if the given error is record not found error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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