Versions in this module Expand all Collapse all v1 v1.0.1 Aug 26, 2021 v1.0.0 Jan 24, 2021 Changes in this version + func MoveDown(db *gorm.DB, value sortingInterface, pos int) error + func MoveTo(db *gorm.DB, value sortingInterface, pos int) error + func MoveUp(db *gorm.DB, value sortingInterface, pos int) error + func RegisterCallbacks(db *gorm.DB) + type SortableCollection struct + PrimaryField string + PrimaryKeys []string + func (sortableCollection *SortableCollection) ConfigureQorMeta(metaor resource.Metaor) + func (sortableCollection *SortableCollection) Scan(value interface{}) error + func (sortableCollection SortableCollection) Sort(results interface{}) error + func (sortableCollection SortableCollection) Value() (driver.Value, error) + type Sorting struct + Position int + func (position *Sorting) SetPosition(pos int) + func (position Sorting) GetPosition() int + func (s *Sorting) ConfigureQorResource(res resource.Resourcer) + func (s *Sorting) ConfigureQorResourceBeforeInitialize(res resource.Resourcer) + type SortingDESC struct + func (SortingDESC) SortingDesc()