Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2023 Changes in this version + type IntSlice []int + func (is *IntSlice) Scan(value any) error + func (is IntSlice) Value() (driver.Value, error) + type Option func(op *gorm.DB) + func PK(pk interface{}) Option + func Status(status int) Option + func StatusIn(status []int) Option + func Table(name string) Option + type StringSlice []string + func (ss *StringSlice) Scan(value any) error + func (ss StringSlice) Value() (driver.Value, error) + type Uorm struct + func NewUorm(db *gorm.DB) *Uorm + func (u *Uorm) Create(i interface{}) error + func (u *Uorm) Delete(i interface{}, ops ...Option) error + func (u *Uorm) Fisrt(i interface{}, ops ...Option) + func (u *Uorm) Get(i interface{}, ops ...Option) + func (u *Uorm) GetDb() *gorm.DB + func (u *Uorm) Model(i interface{}) + func (u *Uorm) Save(i interface{}) error + func (u *Uorm) SetDb(db *gorm.DB) + func (u *Uorm) Update(i interface{}, ops ...Option) error