Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

allow iterate over custom num of records - #473

Open
Mng-dev-ai wants to merge 1 commit into
encode:masterfrom
Mng-dev-ai:allow-iterating-over-custom-num-of-records
Open

Mng-dev-ai wants to merge 1 commit into
encode:masterfrom
Mng-dev-ai:allow-iterating-over-custom-num-of-records

Conversation

@Mng-dev-ai

Copy link
Copy Markdown
Contributor

Closes #413


async def iterate(
self, query: ClauseElement
self, query: ClauseElement, n: int = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n: Optional[int] = None

)
if n is not None:
n -= 1
if n == 0:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use if n <= 0 in case if negative n was passed

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant