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

Add symbol to fetch all fields #17

Closed
DistributedDoge opened this issue Jul 30, 2024 · 1 comment
Closed

Add symbol to fetch all fields #17

DistributedDoge opened this issue Jul 30, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@DistributedDoge
Copy link
Contributor

DistributedDoge commented Jul 30, 2024

To save typing, language could include SQL-like * wildcard to get all fields we cannot be bothered to enumerate.

GET * FROM block 1 ON eth

I think new grammar could new like this:

fields    = { "*" | account_field_list | block_field_list | tx_field_list }

// For each field type:
account_field_list = _{ account_field ~ (", " ~ account_field)* }

I feel I should be able to handle Rust part of implementing that, which would be to modify frontend/parser and create expand_wildcard(entity: &str) helper function. Does it make sense?

@iankressin
Copy link
Owner

I think new grammar could new like this:

That's it.

Does it make sense?

Yes sir. We can either pass all the fields to interpret's backend or create a new enum variant called All here.

Let me know if you need any help with it.

Thanks for handling this!

@iankressin iankressin added the enhancement New feature or request label Aug 19, 2024
@yulesa yulesa mentioned this issue Sep 6, 2024
4 tasks
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