Documentation ¶
Index ¶
- type Model
- func (m *Model[t]) Count() (total int64, err error)
- func (m *Model[t]) Create(data any) (int64, error)
- func (m *Model[t]) DB() *gorm.DB
- func (m *Model[t]) Dec(column string, values ...int) (int64, error)
- func (m *Model[t]) Delete() (int64, error)
- func (m *Model[t]) Distinct(args ...any) *Model[t]
- func (m *Model[t]) Exists() (bool, error)
- func (m *Model[t]) Find() ([]t, error)
- func (m *Model[t]) First() (*t, error)
- func (m *Model[t]) Inc(column string, values ...int) (int64, error)
- func (m *Model[t]) Limit(offset int) *Model[t]
- func (m *Model[t]) Offset(offset int) *Model[t]
- func (m *Model[t]) Omit(columns ...string) *Model[t]
- func (m *Model[t]) Order(order string) *Model[t]
- func (m *Model[t]) Paginate(page int, limit int) *PaginateData[t]
- func (m *Model[t]) Pluck(column string, dest any) error
- func (m *Model[t]) Select(fields []string) *Model[t]
- func (m *Model[t]) SetDB(db *gorm.DB) *Model[t]
- func (m *Model[t]) Unscoped() *Model[t]
- func (m *Model[t]) Update(column string, value any) (int64, error)
- func (m *Model[t]) Updates(values any) (int64, error)
- func (m *Model[t]) Where(where any, args ...any) *Model[t]
- type PaginateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.