Set BINARY attribute for a datamapper query?

Does anyone know how to add the attribute BINARY to a datamapper query?

This is the sql I want datamapper to produce, but I can’t find it in any
of the docs:

select * from table_name where BINARY name like “Code”

Sample datamapper query:
ClassName.all({:name => “Code”})

Right now I am getting all records that match “code” and “Code”. I don’t
want to change the column to a binary column.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs