sql

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crc32

func Crc32(input int64) int64

Crc32 input calculate crc

func GetDbIndex

func GetDbIndex(input int64, dbCount int) int

GetDbIndex get multi db index

func GetTableIndex

func GetTableIndex(input int64, tableCount int) int

GetTableIndex get multi table index

func IsDuplicateKeyError

func IsDuplicateKeyError(e error) bool

IsDuplicateKeyError 判断sql返回错误类型 "数据库主键重复"

func IsNotRowsError

func IsNotRowsError(e error) bool

IsNotRowsError 判断sql返回错误类型 "没有结果"

Types

This section is empty.

Jump to

Keyboard shortcuts

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