Documentation
¶
Index ¶
- func InitModel() error
- type Enginesql
- func (m *Enginesql) Begin() error
- func (m *Enginesql) Close() error
- func (m *Enginesql) Commit() error
- func (m *Enginesql) CommitSession(sess *xorm.Session) error
- func (m *Enginesql) CreateSession() (*xorm.Session, error)
- func (m *Enginesql) End()
- func (m *Enginesql) Exec(sql string, args ...interface{}) (interface{}, error)
- func (m *Enginesql) FetchEnd()
- func (m *Enginesql) FetchRow() bool
- func (m *Enginesql) FetchToStruct(links interface{}) error
- func (m *Enginesql) FindAll(links interface{}, querystring string, args ...interface{}) error
- func (m *Enginesql) FindOne(links interface{}, querystring string, args ...interface{}) (bool, error)
- func (m *Enginesql) FindSql(links interface{}, querystring string, args ...interface{}) error
- func (m *Enginesql) GetsysDate() (t time.Time, e error)
- func (m *Enginesql) LogWriter(file string) error
- func (m *Enginesql) NewFetch(links interface{}, querystring string, args ...interface{}) error
- func (m *Enginesql) Query(sql string) ([]map[string][]uint8, error)
- func (m *Enginesql) Rollback()
- func (m *Enginesql) RollbackSession(sess *xorm.Session) error
- func (m *Enginesql) SqlToExec(sql string, args ...interface{}) error
- func (m *Enginesql) StructToDelete(links interface{}, querystring string, args ...interface{}) error
- func (m *Enginesql) StructToInsert(links interface{}) error
- func (m *Enginesql) StructToUpdate(links interface{}, querystring string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Enginesql ¶
func GetInstance ¶
func GetInstance() *Enginesql
func (*Enginesql) CommitSession ¶
提交Session
func (*Enginesql) CreateSession ¶
创建Session
func (*Enginesql) FetchToStruct ¶
func (*Enginesql) RollbackSession ¶
回滚Session
func (*Enginesql) StructToDelete ¶
func (*Enginesql) StructToInsert ¶
func (*Enginesql) StructToUpdate ¶
Click to show internal directories.
Click to hide internal directories.