Inserting/updating records with non-unique values for columns with a unique constraint raises a Sequel::DatabaseError exception. It's difficult to separate/distinguish this error because of the common exception class and because different database adapters use different error messages. Resulting in something like this (for sqlite/postgres): https://gist.github.com/4579910
ActiveRecord has a RecordNotUnique exception class to handle this, does Sequel have anything similar? Cheers, Tim -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/QAEx6cCuDQsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
