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 /// /// ```