[request]: Build dynamic query builder similar to sequel (rb)
Created by: mguentner
Currently statements need to be written and compiled for each request. A query builder could help doing that by aggregating the values / parameters first and then compiling the statement. I like the interface the Sequel project (ruby) has.
Here is a simple select with chained statements:
ds = DB[:posts]
result = ds.select(:id, :name).order(:name).where{id < 100}.all
http://sequel.jeremyevans.net/rdoc/files/doc/dataset_basics_rdoc.html http://sequel.jeremyevans.net/documentation.html