Versions in this module Expand all Collapse all v0 v0.3.2 Feb 28, 2026 Changes in this version + func Between(col string, low, high interface{}) condition + func Eq(col string, value interface{}) condition + func Expr(sql string, args ...interface{}) condition + func Gt(col string, value interface{}) condition + func Gte(col string, value interface{}) condition + func In(col string, args ...interface{}) condition + func IsNotNull(col string) condition + func IsNull(col string) condition + func Like(col string, pattern string) condition + func Lt(col string, value interface{}) condition + func Lte(col string, value interface{}) condition + func Neq(col string, value interface{}) condition + func NotIn(col string, args ...interface{}) condition + type Builder struct + func NewBuilder(driver string) *Builder + func (b *Builder) Append(c byte) + func (b *Builder) Args() []interface{} + func (b *Builder) Reset() + func (b *Builder) String() string + func (b *Builder) WriteArg(arg interface{}) + func (b *Builder) WriteString(s string) + type ColumnMeta struct + Default string + GoName string + GoType reflect.Type + Index string + IsAutoIncr bool + IsCreated bool + IsDeleted bool + IsJSON bool + IsNullable bool + IsPrimaryKey bool + IsUnique bool + IsUpdated bool + IsVersion bool + Length int + Name string + SQLType string + type Cond interface + WriteTo func(w *Builder) error + type Engine struct + func NewEngine(driver, dsn string) (*Engine, error) + func NewEngineWithDB(driver string, db *sql.DB) *Engine + func (e *Engine) Close() error + func (e *Engine) Count(bean ...interface{}) (int64, error) + func (e *Engine) DB() *sql.DB + func (e *Engine) Delete(bean interface{}) (int64, error) + func (e *Engine) DriverName() string + func (e *Engine) Exec(sqlOrArgs ...interface{}) (sql.Result, error) + func (e *Engine) Find(beans interface{}, conds ...interface{}) error + func (e *Engine) Get(bean interface{}) (bool, error) + func (e *Engine) ID(pk interface{}) *Session + func (e *Engine) Insert(beans ...interface{}) (int64, error) + func (e *Engine) NewSession() *Session + func (e *Engine) Ping() error + func (e *Engine) Query(sqlOrArgs ...interface{}) ([]map[string][]byte, error) + func (e *Engine) SQL(query string, args ...interface{}) *Session + func (e *Engine) SetColumnMapper(mapper names.Mapper) + func (e *Engine) SetMapper(mapper names.Mapper) + func (e *Engine) SetTableMapper(mapper names.Mapper) + func (e *Engine) ShowSQL(show bool) + func (e *Engine) Sync2(beans ...interface{}) error + func (e *Engine) Table(name string) *TableMeta + func (e *Engine) Transaction(fn func(*Session) (interface{}, error)) (interface{}, error) + func (e *Engine) Update(bean interface{}, conds ...interface{}) (int64, error) + func (e *Engine) Where(query string, args ...interface{}) *Session + type PK []interface + type Session struct + func (s *Session) Alias(alias string) *Session + func (s *Session) AllCols() *Session + func (s *Session) And(query string, args ...interface{}) *Session + func (s *Session) Asc(colNames ...string) *Session + func (s *Session) Begin() error + func (s *Session) Close() + func (s *Session) Cols(cols ...string) *Session + func (s *Session) Commit() error + func (s *Session) Context(ctx context.Context) *Session + func (s *Session) Count(bean ...interface{}) (int64, error) + func (s *Session) Delete(bean interface{}) (int64, error) + func (s *Session) Desc(colNames ...string) *Session + func (s *Session) Exec(sqlOrArgs ...interface{}) (sql.Result, error) + func (s *Session) Exist(bean ...interface{}) (bool, error) + func (s *Session) Find(beans interface{}, conds ...interface{}) error + func (s *Session) Get(bean interface{}) (bool, error) + func (s *Session) GroupBy(keys string) *Session + func (s *Session) Having(cond string) *Session + func (s *Session) ID(pk interface{}) *Session + func (s *Session) In(col string, args ...interface{}) *Session + func (s *Session) Insert(beans ...interface{}) (int64, error) + func (s *Session) Join(joinType, tableName string, cond string, args ...interface{}) *Session + func (s *Session) Limit(limit int, start ...int) *Session + func (s *Session) NotIn(col string, args ...interface{}) *Session + func (s *Session) Omit(cols ...string) *Session + func (s *Session) Or(query string, args ...interface{}) *Session + func (s *Session) OrderBy(order string) *Session + func (s *Session) Prepare() *Session + func (s *Session) QueryBytes(sqlOrArgs ...interface{}) ([]map[string][]byte, error) + func (s *Session) Rollback() error + func (s *Session) SQL(query string, args ...interface{}) *Session + func (s *Session) Select(str string) *Session + func (s *Session) Table(name interface{}) *Session + func (s *Session) Update(bean interface{}, conds ...interface{}) (int64, error) + func (s *Session) Where(query string, args ...interface{}) *Session + type TableMeta struct + Columns []*ColumnMeta + Name string + PrimaryKey []string + func (t *TableMeta) Column(name string) *ColumnMeta