News for hackers. Stuff that matters.
Re:Execute SQL against structured text like CSV or TSV by julochrobak on Tuesday February 04, 2014 @11:22AM (#7178374)
if anyone is interested there is a similar tool (called "comp") but the queries are expressed with list comprehension syntax. It also allows to join data from json and xml.

It has two modes: 1) as a commnad line

./comp -f commits.json,authors.txt '[ i.commits | i <- commits, a <- author, i.commits.author.name == a ]'

2) as a service to allow querying of the files through simple http interface

./comp -f commits.json,authors.tx -l :9090

curl -d '{"expr": "[ i.commits | i <- commits, a <- author, i.commits.author.name == a ]"}' http://localhost:9090/full

or through an interactive console on http://localhost:9090/console

disclosure: I'm a co-author, and happy to get a feedback or answer any questions :)

Re:Execute SQL against structured text like CSV or TSV by julochrobak on Tuesday February 04, 2014 @11:26AM (#7178397)
well and here is the link - http://github.com/ostap/comp

:)