Skip to content

Conversation

@Fayti1703
Copy link
Contributor

Problem

The documentation for #db.f's cursors is:

  • hard to find
  • missing specific examples
  • missing several important details (e.g. limit+count interactions)

Context

This is a first draft.

First draft of db cursor refinement.

Expect this commit to VANISH in the future.
Copy link
Member

@matr1x-hackmud matr1x-hackmud left a comment

Choose a reason for hiding this comment

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

Looks great for a first draft! Minus two things I've caught in this current PR I think it could just go in


### Cursor Handles

((%FTODO: Write something that people who have never used a file descriptor in their life can understand.%))
Copy link
Member

Choose a reason for hiding this comment

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

For a first version of this page, this TODO (and other TODOs) can be pulled if you're interested in getting this merged before completing this part


## Cursor State

This function closes the cursor. If this is undesirable, try [count_and_keep_open](./count_and_keep_open).
Copy link
Member

Choose a reason for hiding this comment

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

This page does not exist yet

Copy link
Contributor Author

@Fayti1703 Fayti1703 Nov 14, 2025

Choose a reason for hiding this comment

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

There's a few missing pages:

  • count_and_keep_open (which you mentioned)
  • distinct_and_keep_open
  • each(_and_close)
  • each_and_keep_open
  • sort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants