models

package
v0.0.0-...-e7df039 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 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 Model

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

func New

func New(d int) *Model

func (*Model) Conn

func (mod *Model) Conn() *xorm.Engine

func (*Model) Count

func (mod *Model) Count(conditions *storage.Conditions, d ...interface{}) (int64, error)

func (*Model) Delete

func (mod *Model) Delete(conditions *storage.Conditions, d ...interface{}) (int64, error)

func (*Model) Exec

func (mod *Model) Exec(sql ...interface{}) (sql.Result, error)

func (*Model) Insert

func (mod *Model) Insert(d ...interface{}) (int64, error)

func (*Model) Query

func (mod *Model) Query(sql ...interface{}) ([]map[string][]byte, error)

func (*Model) Select

func (mod *Model) Select(conditions *storage.Conditions, d interface{}) (int8, error)

func (*Model) Update

func (mod *Model) Update(conditions *storage.Conditions, d interface{}, bean ...interface{}) (int64, error)

Jump to

Keyboard shortcuts

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