Ticket #78 (closed enhancement: duplicate)

Opened 2 years ago

Last modified 2 years ago

Do we need to bring back a SQL generator?

Reported by: sandal Assigned to:
Milestone: Keywords:
Cc:

Description

q = sql {
select name, age, height
from patient, doctors
where (age > min_age).and(
name.like(first_name + '%')).or(
name.in([1, 2, 3])).and(
age == height)
order_by age
}

Grifted from http://ola-bini.blogspot.com/2006/09/metaprogramming-refactoring.html in comments section.

This is either a far-future or 'not for me' job, but it might be neat.

Change History

09/20/06 11:38:57 changed by dudley

There's also http://sqldsl.rubyforge.org/ and http://rubyforge.org/projects/ez-where/

This was one of the things I was planning on implementing when I first started looking at Ruport. It's much less of a priority for me now, but it's still bouncing around in the back of my brain somewhere.

01/15/07 12:29:20 changed by sandal

  • owner deleted.

This would make a nice use case for the Ruport extensions code

03/31/07 12:16:33 changed by sandal

  • status changed from new to closed.
  • resolution set to duplicate.