xmysql

package module
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanRetry

func CanRetry(err error) bool

CanRetry checks if a query could be retried on the base of given error.

func ErrorCode

func ErrorCode(err error) cgerrors.ErrorCode

ErrorCode gets the mysql based error code from input error.

func IsDuplicatedError

func IsDuplicatedError(err error) bool

IsDuplicatedError checks if given error states for the mysql duplicated input error.

func NewDriver

func NewDriver() xservice.Driver

NewDriver creates a new error driver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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