mysqldb

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorContains

func ErrorContains(err error, needle string) bool

ErrorContains checks whether an error contains a needle.

func IsMysqlError

func IsMysqlError(err error, mysqlErrorNumber MysqlErrorNumber) bool

IsMysqlError checks whether an error is a Mysql error of a certain type.

Types

type MysqlErrorNumber

type MysqlErrorNumber uint16
const (
	DuplicateEntryError    MysqlErrorNumber = 1062
	LockDeadlockError      MysqlErrorNumber = 1213
	ForeignConstraintError MysqlErrorNumber = 1452
)

Jump to

Keyboard shortcuts

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