errTools

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) error

func IsColumnNotExist

func IsColumnNotExist(err error) bool

IsColumnNotExist 检查错误是否为字段(列)不存在

func IsDuplicateKeyError

func IsDuplicateKeyError(err error) int

IsDuplicateKeyError 检查错误是否为主键或唯一约束冲突,并返回约束类型 返回值: 0-非重复错误, 1-主键重复, 2-唯一键重复

func IsTableNotExist

func IsTableNotExist(err error) bool

IsTableNotExist 检查错误是否为表不存在

Types

This section is empty.

Jump to

Keyboard shortcuts

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