In a fairly unusual step for Sequel, I have pushed another public branch to 
GitHub, named consvals.  From the commit message:

The extension allows you to create database constraints that mirror
model validations when creating and altering tables.  It adds
validation to a separate table.  The plugin reads the metadata
from that table, and uses it to automatically validate your models
before saving.

The advantage to doing so is that your validations are only specified
in one place, but are enforced both at the model level and at the
database level.  This is better for data integrity, since it
enforces the validation for all rows in the database, so changes
made by external programs or via the dataset layer are still
covered.


I've thought about doing this for a long time, but only recently figured 
out a good way to implement this.  Usually, I would just merge something 
like this into the master branch, but as the extension creates its own 
table, it will be quite a pain to modify the schema for the table later.  
To avoid potential problems in the future, I would like to get some 
feedback about this branch before I merge it.  I plan on leaving this 
branch publicly available for one week for feedback.  After I week, I'll 
decide whether to merge it as-is, merge it with changes, or not merge it at 
all, depending on the feedback received.  If you have any feelings about 
this one way or the other, please make them known.

Thanks,
Jeremy

-- 
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/-/DfmKO9mliWYJ.
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.

Reply via email to