Skip to content

Releases: soranoba/pageboy

v4.0.0

03 Feb 05:10
18adf6b
Compare
Choose a tag to compare

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
13ee49e
Compare
Choose a tag to compare

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
66849ba
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

24 May 08:10
6402303
Compare
Choose a tag to compare

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
27c5409
Compare
Choose a tag to compare

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
3b66a0b
Compare
Choose a tag to compare
  • #11 support gorm v1.21.0

v2.2.0

04 Feb 07:01
bfdd11b
Compare
Choose a tag to compare

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
54e9e83
Compare
Choose a tag to compare

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
Choose a tag to compare

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
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release

Bug fixes

  • Fixed the major version of go.mod.