decorator

package module
v0.0.0-...-7392ed4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 6 Imported by: 2

README

xorm-decorator

xorm decorator library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DuplicateKey

func DuplicateKey(db *xorm.Engine, err error) bool

DuplicateKey check if error is a duplicate key error

func RegisterDialect

func RegisterDialect(name string, dialect Dialect)

RegisterDialect .

Types

type Dialect

type Dialect interface {
	DuplicateKey(err error) bool
}

Dialect .

Jump to

Keyboard shortcuts

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