e.g. when use ActiveRecord, i can do where like this.

Event.where("payload->>'kind' = ?", "user_renamed")

For Sequel, i guess we have to do like this, right?

Event.where(Sequel.lit("payload->>'kind' = ?", "user_renamed"))

Why we need stick on add a Sequel.lit in this case when first arguments of 
where is just a string?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/5c57b7dd-dfc3-4422-9e92-83cadd51f8b0n%40googlegroups.com.

Reply via email to