xdb

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 6 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

type XDB added in v0.2.18

type XDB struct {
	// contains filtered or unexported fields
}

func (*XDB) ResCreateMany added in v0.2.18

func (t *XDB) ResCreateMany(name string, tb string, dts ...map[string]interface{}) (err error)

func (*XDB) ResDeleteMany added in v0.2.18

func (t *XDB) ResDeleteMany(name, tb string, filter ...interface{}) (err error)

Jump to

Keyboard shortcuts

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