I’m new to Ruby’s Sequel and am curious as to when I should use Sequel::Dataset and when is best to use Sequel::Model.
I’m new to Ruby’s Sequel and am curious as to when I should use
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need a first-class model, you should be using the model. This provides features like validations, callbacks before and after state transitions and events, as well as a centralized place to store business logic.
A dataset is generally used for more low-level operations.