xdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchObject

func SearchObject(db *gorm.DB, wheres map[string]interface{}, out interface{}) error

func SearchObjectByIn

func SearchObjectByIn(db *gorm.DB, wheres map[string]interface{},
	ins map[string]interface{}, out interface{}) error

func SearchObjectByOrder

func SearchObjectByOrder(db *gorm.DB, wheres map[string]interface{}, ins map[string]interface{},
	orders string, limit, offset int, out interface{}) error

func UpdateObject

func UpdateObject(db *gorm.DB, wheres, updates map[string]interface{}) error

updates maybe use gorm.Expr()

func UpdateObjectIns

func UpdateObjectIns(db *gorm.DB, wheres, ins, updates map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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