there is this
https://github.com/bevry/query-engine

not sql like, mongo like.

On Tuesday, April 24, 2012 4:18:41 AM UTC-7, manimal45 wrote:
>
> Hi, 
>
> I wanted to know if there was any existing module allowing for 
> handling json streams with an SQL like API. 
>
> For instance, let's say the module's name is querystreams, the 
> expected API would allow for code like this  : 
> var s = new StreamProducer("a stream from a thrid party outputting 
> json rows"); // 'data', {a : 1, b :2} ... 
> var filter = querystream(s, { a : 1}) ; // creates a stream which 
> outputs only rows with #.a=1 
>
> var s1 = new StreamProducer("a stream from a thrid party outputting 
> json rows"); 
> var s2 = new StreamProducer("a stream from a thrid party outputting 
> json rows"); 
> var join = querystreams.join(s1,s2, { "s1.a = s2.a && s1.b == 
> s2.b"}); // creates a stream resulting in joining s1 and s2 on the 
> given condition 
>
>
> var unsorted = new StreamProducer("a stream from a thrid party 
> outputting json rows"); 
> var sorted = querystream.sort(unsorted, {a : 'desc'}); // creates a 
> stream where values are sorted depending on the #. property 
>
>
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to