Help us shape the future of Go! Take the 2026 Go Developer Survey

dberrors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespace = errorx.NewNamespace("db")
View Source
var NotFound = Namespace.NewType("not_found", errdef.TraitNotFound)
View Source
var QueryFailed = Namespace.NewType("query_failed")

Functions

func QueryOrNotFoundError

func QueryOrNotFoundError(err error, message string, args ...any) *errorx.Error

QueryOrNotFoundError wraps the error with QueryFailed or NotFound error type depending on the GORM error type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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