Comments (12)
Any update on this. This is still a problem for me. Thank you
from history-tools.
We stopped development on the legacy /v1/history
api.
from history-tools.
Ok thank you for the reply, but the question was not specific to /v1/history
but more of a broader question. How can you query in descending order?
from history-tools.
When writing a wasm-ql query handler (C++): both the old-style CDT table API and the new-style CDT KV table API provide support for C++ reverse iteration.
from history-tools.
I would be very appreciative of an example. I have looked and cannot find one anywhere.
from history-tools.
multi_index
's rbegin()
and rend()
methods. I don't know of any examples, but they behave similar to the C++ standard containers' rbegin()
and rend()
methods:
https://developers.eos.io/manuals/eosio.cdt/latest/classeosio_1_1multi__index#function-rbegin
from history-tools.
The kv tables have similarly-named methods.
from history-tools.
I dont understand how that link applies. I have been struggling with this for a while, and this is a common enough requirement that others will also benefit from some instruction of how to do this.
Am I meant to be modifying database.hpp
somewhere with the rbegin()
and rend()
methods?
from history-tools.
database.hpp
is obsolete. I don't believe I got around to adding reverse iteration support to it before dumping that API and switching to the 2 CDT table APIs.
from history-tools.
any examples of 2 CDT table APIs
?
Also I take back my reference to database.hpp
. My question is a broader, How can this be done?
from history-tools.
See the top of the readme on this branch: https://github.com/EOSIO/history-tools/tree/idea
No examples have made it into the public repos yet for the current direction. The basic idea of the current direction:
- nodeos on the eos
develop
branch supports actions returning values. A wasm-ql query is just an action on a contract that returns a result without mutating data. - both nodeos and rodes can run wasm-ql queries.
- rodeos adds parallel execution and filter wasm support.
If you know how to access a table from within an action, you already know how to write a query. Note that hard forks have to be activated and there's a lot still missing.
from history-tools.
I'm building out wasm-ql queries using the database.hpp and using them in a custom block explorer. Is there any re-usability from the soon-to-be deprecated wasm-ql/database.hpp stuff with regard to the new method (rodeos?) or is the method too different for any sort of refactorization?
from history-tools.
Related Issues (20)
- catch_and_close Stream overrun HOT 9
- catch_and_close w/ Bad variant index HOT 5
- How to build this project in centos?
- action_trace in the table transaction_trace is messy code
- hex string has incorrect length & stuck at switch forks at block HOT 3
- How to decode transaction_trace.act.data v1.0.0 HOT 1
- transaction_trace.account_ram_delta in v1.0.0
- New Issue to test Automation's Github/Jira integration HOT 4
- no data in the block_info table
- No rocksdb in build. Removed from CMake HOT 3
- Performance improvement for fill-pg
- what's your plan to support eosio 2.0.x completely?
- add https server functionality HOT 2
- Building on mac HOT 1
- Double Data In Table Not Unpacking Properly HOT 3
- Wasm-ql Query Lumps Strings Into Last Structs Key
- How to use it? HOT 4
- The binary link is broken
- Does the balance-snapshot example work? HOT 1
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 history-tools.