Skip to content

Commit 759308e

Browse files
feat: pagination (#819)
* feat: add pagination interfaces * feat: base pager implementation * fix: make pages immutable * feat: _KeyPager overrides * test: mock client update * test: _BasePager tests * fix: clean up * feat: update default page size to 200 * feat: reusable get_all * feat: _KeyPager * feat: _BookmarkPager * refactor: pagination entry point factory API * refactor: renames * test: updates for new entry point and renames * chore: remove TODO comment * feat: add pagination option validation * fix: use Sequence type for interfaces * fix: add missing type * fix: opts deletion error * fix: return from all docs _get_next_page_options * test: extract common page mocks * test: add pagination operation tests * test: share error code * test: add pagination error tests * docs: pagination examples docs: pagination examples * fix: Optional[str] for python 3.9 * test: itertools.batched fix for older versions --------- Co-authored-by: Rich Ellis <ricellis@users.noreply.github.com> Co-authored-by: Richard Ellis <RICELLIS@uk.ibm.com>
1 parent cd2bbbb commit 759308e

17 files changed

Lines changed: 2109 additions & 28 deletions

ibmcloudant/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from .couchdb_session_token_manager import CouchDbSessionTokenManager
2424
from .cloudant_v1 import CloudantV1
2525
from .features.changes_follower import ChangesFollower
26+
from .features.pagination import Pager, PagerType, Pagination
2627

2728
# sdk-core's __construct_authenticator works with a long switch-case so monkey-patching is required
2829
get_authenticator.__construct_authenticator = new_construct_authenticator

0 commit comments

Comments
 (0)