Skip to content Skip to sidebar Skip to footer

Sequel Gem Increment

I am trying to use the Ruby Sequel gem for DB operations. I am stuck for incrementing and decrementing values. The doc says that this should work, even though it seems very strange

Solution 1:

You should use Sequel.expr for that:

s[:query_volume].update_sql(:queries => Sequel.expr(3) + :queries)

Post a Comment for "Sequel Gem Increment"