avlorm: a package that makes the equivalent of SQL indices with avl.Trees #1467
Labels
🗺️good first issue🗺️
Ideal for newcomer contributors
hacktoberfest
This might be a good issue for a hacktoberfest participant to handle.
🧾 package/realm
Tag used for new Realms or Packages.
The objective is to develop a utility that stores a collection of pointers and provides multiple getters. Here's an example in pseudo-code (probably not a good suggestion):
Alternatively:
Or, my preferred option: code generation!
Then, we can use it like this:
An alternative, which would not be called an ORM, would be to create an index from an existing avl.Tree. It could be done like this:
This topic will likely have both successful and unsuccessful implementations. It's a suitable introductory task for those interested in experimenting with gno without committing to a complete product, as it only involves backend Go.
Additionally, it will serve as a crucial library component for individuals developing complex contracts, like a twitter clone. This library will enable pagination with different queries, such as "recent global tweets," "recent author tweets," and "recent tags tweets."
Please consider this task as a suitable one for the game of realms and becoming a contributor. If you don't plan to write a library, feel free to share your ideas. This challenge should have been addressed multiple times in the last 40 years.
The text was updated successfully, but these errors were encountered: