Clear allows you to build Select query
Model.query.select( Clear::SQL.raw("CASE WHEN x=:x THEN 1 ELSE 0 END as check", x: "blabla") )
Last updated 4 years ago