Documentation ¶
Index ¶
- func Migrate(mdls []any, sqls ...string) error
- type Dao
- func (d *Dao[M]) Get(conds ...any) (*M, error)
- func (d *Dao[M]) List(conds ...any) ([]M, int64, error)
- func (d *Dao[M]) Make(conds ...any) *gorm.DB
- func (d *Dao[M]) Purge(conds ...any) error
- func (d *Dao[M]) Remove(conds ...any) error
- func (d *Dao[M]) Save(m M, confs ...clause.Expression) error
- func (d *Dao[M]) Saves(ms []M, confs ...clause.Expression) error
- func (d *Dao[M]) Trans(funcs ...func(tx *gorm.DB) error) error
- func (d *Dao[M]) Update(values map[string]any, conds ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.