In my table Person, i'm tying to select only the records where the
length of the name is >=10 characters.

In SQL, I believe i'd do this with:
  SELECT * FROM Person WHERE LENGTH(Name) >= 10

Is there a way to specify a length constraint in a native datamapper
query, like
  Person.all(:name_length.gte => 10)
or perhaps
  Person.all(:conditions => [ :name.length.gt => '10' ] ?

Thank you for your help.

kevin.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamap...@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to