Commit 759308e
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
File tree
- ibmcloudant
- features
- test
- examples/src/features/pagination
- unit/features
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments