query

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist[T commonModel.Model](query interface{}, args ...interface{}) (bool, error)

func FirstByField

func FirstByField[T commonModel.Model](field string, value interface{}) (T, error)

func FirstByPrimaryKey

func FirstByPrimaryKey[T commonModel.Model](id interface{}) (T, error)

func GetAmountCountStatistic

func GetAmountCountStatistic(query *gorm.DB) (result global.AmountCount, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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