Comments (3)
@moul I see the second example appears to be cleaner, however it seems that we would need to define an object implementing the tree and an interface for methods related to indexing. If you're confident, please provide a specific plan, and I will create a PR to address it
from gno.
I prefer the first approach for its versatility, as it can work with any datastore implementation, not just avl.Tree.
I prefer the second approach specifically for avl.Tree.
The underlying logic will likely be similar, and we could expose the two interfaces as independent packages to allow A/B testing and see which approach users prefer.
The p/index
feature is the first step in a longer-term plan to provide a userland SQL-like interface.
from gno.
It seems to be somewhat related to the previously proposed avlorm(#1467) package. Would it be better to create it as a separate package or add query functionality to the ORM package?
If it's to be created as a separate package, I will work on the ORM. I have something that still in WIP.
from gno.
Related Issues (20)
- [gnokey] `verify` not functioning as intended HOT 7
- [docs] Add `TestSetRealm` reference
- [gnoweb] Clicking the `gno.mod` source on realms returns 404
- [bug/portal_loop] `runtime error: index out of range [2] with length 0` while deploying certain realm on poral-loop HOT 3
- [docs] Add GRC721 how-to guide
- [docs] Index missing pages & remove outdated ones
- [GRC] Refactor GRC20
- [docs] Add a guide on tx-indexer
- [docs] Add `tx-archive` to the docs
- [docs] Add `supernova` to the docs
- [bug/gnovm] arrays returned by functions should not be addressable
- [chain] Add JSON output support for `gnoland secrets get` HOT 3
- [gnokey] Display transaction hash to user after a `maketx` call HOT 1
- [gnoland] Improve UX of `genesis txs remove` command HOT 2
- A revert function to refund coins sent to a realm that doesn't take coins HOT 1
- importing "std" not working in gno.playground HOT 2
- Network peering discovery - Seed mode - Addrbook.json HOT 1
- Missing return value error in Poll tutorial HOT 2
- [gnokey] `Verify` and `Sign` functions now are not a pair HOT 2
- Proposal: Zero-Knowledge Proofs (ZKPs) for Login Process - Adena
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gno.