Releases: soranoba/pageboy
Releases · soranoba/pageboy
v4.0.0
03 Feb 05:10
Compare
Sorry, something went wrong.
No results found
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
Full Changelog : v3.0.2...v4.0.0
v3.0.2
28 Feb 05:55
Compare
Sorry, something went wrong.
No results found
What's Changed
Fix: the possibility of panic instead of error when the DB connection is broken. by @soranoba in #18
Full Changelog : v3.0.1...v3.0.2
v3.0.1
27 Feb 12:36
Compare
Sorry, something went wrong.
No results found
v3.0.0
24 May 08:10
Compare
Sorry, something went wrong.
No results found
Breaking Changes
It will MUST execute pageboy.RegisterCallbacks immediately after db.Open .
db , _ := gorm .Open (sqlite .Open ("test.db" ), & gorm.Config {})
// Please execute it only once immediately after opening DB.
pageboy .RegisterCallbacks (db )
Bug fixes
#14 Fixed a bug related to concurrency
v2.2.2
20 Apr 10:33
Compare
Sorry, something went wrong.
No results found
New Features
#12 Support bool column (field)
Others
#13 Added a panic message if you specified a non-existent fields.
v2.2.1
05 Mar 11:31
Compare
Sorry, something went wrong.
No results found
v2.2.0
04 Feb 07:01
Compare
Sorry, something went wrong.
No results found
Bug fix
#9 Fixed an issue where where clause is ambiguous could occur
When you use cursors and override your order, the behavior may be changed.
v2.1.0
07 Dec 06:57
Compare
Sorry, something went wrong.
No results found
It supports only GORM v1.20.7 or later.
#8 Support GORM v1.20.7 : gorm.Session.WithConditions is unavailable.
v2.0.0
31 Oct 07:41
Compare
Sorry, something went wrong.
No results found
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
12 Oct 08:51
Compare
Sorry, something went wrong.
No results found
Bug fixes
Fixed the major version of go.mod.