On 1 Aug 2012, at 20:38, Jeremy Evans wrote:

> 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
> 

It sounds like a good idea to me, I had a quick look at the source and the docs 
seem to make sense too. I've a project I can use it on in the next few days so 
I'll let you know if I have any trouble. Thanks.


Regards,
Iain



-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
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