Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-26 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote: I'm personally moving towards a DSL. unittest { auto myQuery = using webdev.base.orm.query.parser.defs # allow for D class name instead of table name ; # end of \sentence\ from MyModel where key == $0 as simple # as

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-26 Thread Rikki Cattermole via Digitalmars-d
On 27/04/2015 1:12 a.m., Idan Arye wrote: On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote: I'm personally moving towards a DSL. unittest { auto myQuery = using webdev.base.orm.query.parser.defs # allow for D class name instead of table name ; # end of \sentence\ from

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-26 Thread Rikki Cattermole via Digitalmars-d
On 27/04/2015 12:10 a.m., Laeeth Isharc wrote: On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote: I'm personally moving towards a DSL. unittest { auto myQuery = using webdev.base.orm.query.parser.defs # allow for D class name instead of table name ; # end of \sentence\

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-26 Thread Idan Arye via Digitalmars-d
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote: I'm personally moving towards a DSL. unittest { auto myQuery = using webdev.base.orm.query.parser.defs # allow for D class name instead of table name ; # end of \sentence\ from MyModel where key == $0 as simple # as

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-26 Thread Idan Arye via Digitalmars-d
On Saturday, 25 April 2015 at 05:16:21 UTC, Andrei Alexandrescu wrote: Found this on reddit a few days ago: http://rob.conery.io/2015/04/17/rethinkdb-2-0-is-amazing/ A good discussion of the pros and cons of pipeline-style queries (the ReQL query language reminiscent of D's

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-25 Thread Rikki Cattermole via Digitalmars-d
On 26/04/2015 1:59 a.m., w0rp wrote: On Saturday, 25 April 2015 at 05:16:21 UTC, Andrei Alexandrescu wrote: Found this on reddit a few days ago: http://rob.conery.io/2015/04/17/rethinkdb-2-0-is-amazing/ A good discussion of the pros and cons of pipeline-style queries (the ReQL query language

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-25 Thread monty via Digitalmars-d
On Saturday, 25 April 2015 at 13:59:41 UTC, w0rp wrote: One thing *kind of* related that I have really enjoyed is Django's querysets for building SQL queries. In Django, a QuerySet has methods query yields new QuerySet objects, so you can build a set of parameters and SQL is eventually

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-25 Thread w0rp via Digitalmars-d
On Saturday, 25 April 2015 at 05:16:21 UTC, Andrei Alexandrescu wrote: Found this on reddit a few days ago: http://rob.conery.io/2015/04/17/rethinkdb-2-0-is-amazing/ A good discussion of the pros and cons of pipeline-style queries (the ReQL query language reminiscent of D's

ReQL: pluses and minuses of pipeline-style queries

2015-04-24 Thread Andrei Alexandrescu via Digitalmars-d
Found this on reddit a few days ago: http://rob.conery.io/2015/04/17/rethinkdb-2-0-is-amazing/ A good discussion of the pros and cons of pipeline-style queries (the ReQL query language reminiscent of D's algorithms/ranges) vs. classic SQL. Andrei