models

package
v0.0.0-...-b509d7c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Models

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

func New

func New(group map[interface{}][]*xorm.Engine) *Models

func (*Models) Delete

func (m *Models) Delete(mPoT *data.ModPoT, d interface{}) (i int64, err error)

func (*Models) Exec

func (m *Models) Exec(sqlOrArgs ...interface{}) (sql.Result, error)

func (*Models) GeT

func (m *Models) GeT(mPoT *data.ModPoT, d interface{}) (bool, error)

func (*Models) GeTEngine

func (m *Models) GeTEngine(method string) (*xorm.Engine, error)

func (*Models) Insert

func (m *Models) Insert(d interface{}) (i int64, err error)

func (*Models) Query

func (m *Models) Query(sqlOrArgs ...interface{}) ([]map[string][]byte, error)

func (*Models) Total

func (m *Models) Total(d interface{}) (i int64, err error)

func (*Models) Transaction

func (m *Models) Transaction(operation func(db *xorm.Session)) error

func (*Models) Update

func (m *Models) Update(mPoT *data.ModPoT, d interface{}) (i int64, err error)

Jump to

Keyboard shortcuts

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