Versions in this module Expand all Collapse all v1 v1.0.2 Apr 19, 2022 v1.0.1 Apr 17, 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, dialect dialect.Dialect) *Session + func (s *Session) Begin() (err error) + func (s *Session) CallMethod(name string) + 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(args interface{}) error + func (s *Session) First(args interface{}) error + func (s *Session) Insert(values ...interface{}) (int64, error) + func (s *Session) Limit(args ...interface{}) *Session + func (s *Session) Model(value interface{}) *Session + func (s *Session) OrderBy(args ...interface{}) *Session + func (s *Session) QueryRow() *sql.Row + func (s *Session) QueryRows() (rows *sql.Rows, err error) + func (s *Session) Raw(sql string, vars ...interface{}) *Session + func (s *Session) RefTable() *schema.Schema + func (s *Session) RollBack() (err error) + func (s *Session) Update(values ...interface{}) (int64, error) + func (s *Session) Where(query interface{}, args ...interface{}) *Session