From: "Peña, Botp" Date: 2008-10-07T18:11:16+09:00 Subject: Re: RINQ? From: Trans [mailto:transfire@gmail.com] #... # r = query do # from :c => :customer, :a => :account, :b => :bank # select b.name # where (( c.firstname == first1 ) | # ( c.firstname == first2 ) ) & # ( c.lastname =~ last ) & # ( a.owner == c ) & # ( a.bank == b ) # end try r = query(customer, account, bank) do |c,a,b| select (( c.firstname == first1 ) | ( c.firstname == first2 ) ) & ( c.lastname =~ last ) & ( a.owner == c ) & ( a.bank == b ) . collect b.name end #... # But is Ruby ultimately expressive enough? We # may end up adding enough new syntax i think ruby syntax is more than enough (imho). In a way, i'd like to think like active records when it comes to databases (in mfowler's sense, not rails) and use ruby to implem. kind regards -botp