question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parsable language to write arql queries in

See original GitHub issue

It 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mkg20001commented, Oct 12, 2019

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

0reactions
aidanokcommented, Jul 4, 2020

Closing this as there now two libraries available that do this and are listed in the arweave-js docs 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found