FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

allow iterate over custom num of records by Mng-dev-ai · Pull Request #473 · encode/databases · GitHub

This repository was archived by the owner on Aug 19, 2025. It is now read-only.
/ databases Public archive

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

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

Conversation

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feature request: iterate over more than 1 record

1 participant


Back | FazBrowse Home | New Git URL