Versions in this module Expand all Collapse all v1 v1.0.1 Mar 4, 2024 Changes in this version + const AfterDelete + const AfterInsert + const AfterQuery + const AfterUpdate + const BeforeDelete + const BeforeInsert + const BeforeQuery + const BeforeUpdate + type JoinType int + const CROSS + const FULL + const INNER + const JOIN + const LEFT + const RIGHT + func (j JoinType) String() string + type Session struct + func New(db *server.DB, split *map[string]spliter.Split, dbs map[string]*server.DB, ...) *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) Create(values interface{}) (int64, error) + func (s *Session) Delete() (int64, error) + func (s *Session) DropTable() error + func (s *Session) Find(values interface{}) error + func (s *Session) First(value interface{}) error + func (s *Session) GetIntFromInterface(val interface{}) (int, error) + func (s *Session) GetTableFromNone(tableName string) ([]string, error) + func (s *Session) GetTableFromTableAndSplitFiled(tableName string, splitFiledVal interface{}) (string, error) + func (s *Session) GetTimeFromInterface(val interface{}) (time.Time, error) + func (s *Session) GroupBy(desc string) *Session + func (s *Session) Having(desc string, args ...interface{}) *Session + func (s *Session) Join(joinType JoinType, desc string, args ...interface{}) *Session + func (s *Session) Limit(num int) *Session + func (s *Session) Model(value interface{}) *Session + func (s *Session) Offset(num int) *Session + func (s *Session) Omit(field ...string) *Session + func (s *Session) Or(desc string, args ...interface{}) *Session + func (s *Session) OrderBy(desc string) *Session + func (s *Session) Query(ctx context.Context, db *sql.DB, dia dialect.Dialect, sqlInfo string, ...) error + func (s *Session) QueryPagination(ctx context.Context, db *sql.DB, dia dialect.Dialect, sqlInfo string, ...) (err error) + func (s *Session) QueryRowContext(ctx context.Context, db *sql.DB, dia dialect.Dialect, sqlInfo string, ...) *sql.Row + func (s *Session) Raw(sql string, values ...interface{}) *Session + func (s *Session) RefTable() *schema.Schema + func (s *Session) Rollback() (err error) + func (s *Session) Select(field ...string) *Session + func (s *Session) Table(table string) *Session + func (s *Session) Update(desc string, args ...interface{}) (int64, error) + func (s *Session) Where(desc string, args ...interface{}) *Session + func (s *Session) WithContext(ctx context.Context) *Session