From b91eab7fd9611b6d155120989c4f3bbda2f3754d Mon Sep 17 00:00:00 2001 From: Daniel Gallups Date: Fri, 20 Feb 2026 06:37:12 -0500 Subject: [PATCH] chore: add `set_page` to paginator --- sea-orm-sync/src/executor/paginator.rs | 5 +++++ src/executor/paginator.rs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sea-orm-sync/src/executor/paginator.rs b/sea-orm-sync/src/executor/paginator.rs index c2330c77bf..3974c814a9 100644 --- a/sea-orm-sync/src/executor/paginator.rs +++ b/sea-orm-sync/src/executor/paginator.rs @@ -119,6 +119,11 @@ where self.page } + /// Set the page counter + pub fn set_page(&mut self, page: u64) { + self.page = page; + } + /// Fetch one page and increment the page counter /// /// ``` diff --git a/src/executor/paginator.rs b/src/executor/paginator.rs index 3f3a670a12..1da5bd94f5 100644 --- a/src/executor/paginator.rs +++ b/src/executor/paginator.rs @@ -121,6 +121,11 @@ where self.page } + /// Set the page counter + pub fn set_page(&mut self, page: u64) { + self.page = page; + } + /// Fetch one page and increment the page counter /// /// ```