Versions in this module Expand all Collapse all v1 v1.0.0 Feb 2, 2022 Changes in this version + const AfterDelete + const AfterInsert + const AfterQuery + const AfterUpdate + const BeforeDelete + const BeforeInsert + const BeforeQuery + const BeforeUpdate + type CommonDB interface + Exec func(query string, args ...interface{}) (sql.Result, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + type Session struct + func New(db *sql.DB, dialector dialect.Dialector, log *elog.Log) *Session + func (s *Session) Begin() (err error) + func (s *Session) CallMethod(method string, value interface{}) + func (s *Session) Clear() + func (s *Session) Commit() (err error) + func (s *Session) Count() (int64, error) + func (s *Session) CreateTable() error + func (s *Session) DB() CommonDB + func (s *Session) Delete() (int64, error) + func (s *Session) DropTable() error + func (s *Session) Exec() (result sql.Result, err error) + func (s *Session) Find(values interface{}) error + func (s *Session) First(value interface{}) error + func (s *Session) HasTable() bool + func (s *Session) Insert(values ...interface{}) (int64, error) + func (s *Session) Limit(num int) *Session + func (s *Session) Model(model interface{}) *Session + func (s *Session) OrderBy(desc string) *Session + func (s *Session) Query() (*sql.Rows, error) + func (s *Session) QueryRow() *sql.Row + func (s *Session) Raw(sql string, values ...interface{}) *Session + func (s *Session) Rollback() (err error) + func (s *Session) Table() *schema.Schema + func (s *Session) Update(kv ...interface{}) (int64, error) + func (s *Session) Where(desc string, args ...interface{}) *Session