Parsable language to write arql queries in
See original GitHub issueIt would be cool if there would be a parsable language for arql so I could write one as a string instead of using nested objects
I’ve written some code down here: https://gist.github.com/mkg20001/42a252f5fdc0a27d4ff3ed055edaf2cb
Implemented examples: & (= a 'test') (= b 'test')
and and(equals(a, 'test'), equals(b, 'test'))
Since both would use the same lexer (the lexer is actually not written yet), they could be both supported simultaniously. Both token parsing functions return arql queries.
So far I’ve only implemented them to support and
and equals
How should those query languages be implemented in arweave?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
14 Open Source SQL Parsers - HackerNoon
Apache Calcite is a popular parser/optimizer that is used in popular databases and query engines like Apache Hive, BlazingSQL, and many others.
Read more >Parsing SQL - Strumenta - Federico Tomassetti
PHP SQL Parser is a (mainly) MySQL (non-validating) parser written in PHP. It can parse other SQL dialects with some modifications. It fully...
Read more >SQL Parser Use Cases. - Sonra
SQL parsing is similar to parsing any other programming language. The parser deconstructs the SQL query based on the SQL syntax, ...
Read more >4. Parsing SQL - flex & bison [Book] - O'Reilly
SQL (which stands for Structured Query Language and is usually pronounced sequel) is the most common language used to handle relational databases.
Read more >Design and Practice of Self-Developed SQL Parser
Structured Query Language (SQL) is a domain-specific language (programming language) used first in relational databases, which is convenient ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s pretty cool
I’m going to replace a part of my code that uses this, the other parts will likely continue to use arlang for where user-supplied queries are expected as strings
Closing this as there now two libraries available that do this and are listed in the arweave-js docs 😃