goxorm

package
v0.0.0-...-66c0836 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitModel

func InitModel() error

Types

type Enginesql

type Enginesql struct {
	Engin   *xorm.Engine
	Session *xorm.Session
	Rows    *xorm.Rows
}

func GetInstance

func GetInstance() *Enginesql

func (*Enginesql) Begin

func (m *Enginesql) Begin() error

func (*Enginesql) Close

func (m *Enginesql) Close() error

func (*Enginesql) Commit

func (m *Enginesql) Commit() error

func (*Enginesql) CommitSession

func (m *Enginesql) CommitSession(sess *xorm.Session) error

提交Session

func (*Enginesql) CreateSession

func (m *Enginesql) CreateSession() (*xorm.Session, error)

创建Session

func (*Enginesql) End

func (m *Enginesql) End()

func (*Enginesql) Exec

func (m *Enginesql) Exec(sql string, args ...interface{}) (interface{}, error)

func (*Enginesql) FetchEnd

func (m *Enginesql) FetchEnd()

func (*Enginesql) FetchRow

func (m *Enginesql) FetchRow() bool

func (*Enginesql) FetchToStruct

func (m *Enginesql) FetchToStruct(links interface{}) error

func (*Enginesql) FindAll

func (m *Enginesql) FindAll(links interface{}, querystring string, args ...interface{}) error

func (*Enginesql) FindOne

func (m *Enginesql) FindOne(links interface{}, querystring string, args ...interface{}) (bool, error)

func (*Enginesql) FindSql

func (m *Enginesql) FindSql(links interface{}, querystring string, args ...interface{}) error

func (*Enginesql) GetsysDate

func (m *Enginesql) GetsysDate() (t time.Time, e error)

func (*Enginesql) LogWriter

func (m *Enginesql) LogWriter(file string) error

func (*Enginesql) NewFetch

func (m *Enginesql) NewFetch(links interface{}, querystring string, args ...interface{}) error

func (*Enginesql) Query

func (m *Enginesql) Query(sql string) ([]map[string][]uint8, error)

func (*Enginesql) Rollback

func (m *Enginesql) Rollback()

func (*Enginesql) RollbackSession

func (m *Enginesql) RollbackSession(sess *xorm.Session) error

回滚Session

func (*Enginesql) SqlToExec

func (m *Enginesql) SqlToExec(sql string, args ...interface{}) error

func (*Enginesql) StructToDelete

func (m *Enginesql) StructToDelete(links interface{}, querystring string, args ...interface{}) error

func (*Enginesql) StructToInsert

func (m *Enginesql) StructToInsert(links interface{}) error

func (*Enginesql) StructToUpdate

func (m *Enginesql) StructToUpdate(links interface{}, querystring string, args ...interface{}) error

Jump to

Keyboard shortcuts

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