You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've used GORM in multiple projects already, and often times I would find myself re-implementing cursor pagination for those projects. Since I had the same implementation, I thought maybe adding a method db.ListPaginated(...) that takes in the necessary parameters (e.g. cursor, limit etc.) would benefit the library. What do you think of this? If you think it would make sense, I could provide more details regarding how I believe it could be standardized, and I would like to contribute implementing it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've used GORM in multiple projects already, and often times I would find myself re-implementing cursor pagination for those projects. Since I had the same implementation, I thought maybe adding a method
db.ListPaginated(...)
that takes in the necessary parameters (e.g. cursor, limit etc.) would benefit the library. What do you think of this? If you think it would make sense, I could provide more details regarding how I believe it could be standardized, and I would like to contribute implementing it.Beta Was this translation helpful? Give feedback.
All reactions