Releases: soranoba/pageboy
Releases · soranoba/pageboy
v4.0.0
It supports only GORM v1.24.0 or later.
Since it is necessary to upgrade the version of SQL libraries, I decided to upgrade the major.
There are no breaking changes in this library from v3.
What's Changed
- Support GORM 1.24 by @soranoba (with @manini-1) in #21
- Preparing to upgrade from v3 to v4 by @soranoba in #22
Full Changelog: v3.0.2...v4.0.0
v3.0.2
v3.0.1
v3.0.0
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.0
New Features
- #6 Support PostgresSQL and SQLServer / Clean go.mod
Breaking Changes
The contents of the functions have not changed, but I/F of the functions has changed.
pageboy
- func (cursor *Cursor) Order(orders ...pbc.Order) *Cursor
+ func (cursor *Cursor) Order(orders ...string) *Cursor
pageboy/core
- func MakeComparisonScopeBuildFunc(columns ...string) func(comparisons ...Comparison) func(values ...interface{}) func(*gorm.DB) *gorm.DB`
+ func MakeComparisonScope(columns []string, comparisons []Comparison, nullsOrders []NullsOrder, values []interface{}) func(*gorm.DB) *gorm.DB
- func OrderClauseBuilder(columns ...string) func(orders ...Order) string
+ func OrderClauseBuilder(columns ...string) func(orders ...string) string
- func ReverseOrders(orders []Order) []Order
+ func ReverseOrders(orders []string) []string
v2.0.0-beta.3
Bug fixes
- Fixed the major version of go.mod.