Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better API #6

Open
fikovnik opened this issue Aug 25, 2022 · 2 comments
Open

Better API #6

fikovnik opened this issue Aug 25, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@fikovnik
Copy link
Member

It would be nice to use some "standard" functions, for example:

  • length - gives number of values
  • summary - returns a list with details about the content of the db, this itself should be an S3 class so it can have its own printing, ...
  • [ - access the elements
  • close - closes the DB
  • ...
@programLyrique
Copy link
Collaborator

0f91baf adds length, [, close and summary.

summary currently shows the path of the db, its number of elements, and whether it is in write mode.
I may also add whether the index is built, and in that case, the distribution of types inside the db, , the distribution of sizes, the distribution of the most frequent classes.

@fikovnik any other info you would like to see in the summary?

@fikovnik
Copy link
Member Author

fikovnik commented Sep 2, 2022 via email

@programLyrique programLyrique added the enhancement New feature or request label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants