mysql

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGetDb

func GenerateGetDb(db *gorm.DB, q Query) *gorm.DB

GenerateGetDb .

func GenerateListDb

func GenerateListDb(
	db *gorm.DB,
	q Query,
	pageSize int64,
	pageNo int64,
) *gorm.DB

GenerateListDb .

func IsUniqueConstraintError

func IsUniqueConstraintError(err error) bool

IsUniqueConstraintError .

Types

type Query

type Query interface {
	Supplements(db *gorm.DB) *gorm.DB
}

Query .

Jump to

Keyboard shortcuts

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