Documentation ¶
Index ¶
- type Model
- func (m *Model[t]) Count() (total int64, err error)
- func (m *Model[t]) Create(data *t) (int64, error)
- func (m *Model[t]) DB() *gorm.DB
- func (m *Model[t]) Delete() (int64, error)
- func (m *Model[t]) Distinct(args ...interface{}) *Model[t]
- func (m *Model[t]) Exists() (bool, error)
- func (m *Model[t]) Find() (res *[]t, err error)
- func (m *Model[t]) First() (res *t, err 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 interface{}) (int64, error)
- func (m *Model[t]) Updates(values interface{}) (int64, error)
- func (m *Model[t]) Where(where map[string]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.