query

package
v0.0.0-...-96111de Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform

func Transform(db *gorm.DB, queries ...Query) *gorm.DB

Transform applies multiple query to an existing instance of gorm.DB to create a new gorm.DB.

Types

type Query

type Query func(db *gorm.DB) *gorm.DB

Query is a flexible pattern to allow query DB.

func Equal

func Equal(field string, value interface{}) Query

Equal implements equal query.

func Limit

func Limit(limit int64) Query

Limit implements limit query.

func Offset

func Offset(offset int64) Query

Offset implements offset query.

func OrderBy

func OrderBy(field string, asc bool) Query

OrderBy implements ORDER BY query.

Jump to

Keyboard shortcuts

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