On 2013-11-13 09:34, luka8088 wrote:

What about something like this?

class Person {

   macro where (Context context, Statement statement) {
     // ...
   }

}

auto foo = "John";
auto result = Person.where(e => e.name == foo);

// is replaced by
auto foo = "John";
auto result = Person.query("select * from person where person.name = " ~
sqlQuote(foo) ~ ";");

That's basically what would happen.

--
/Jacob Carlborg

Reply via email to