[Dbix-class] add_unique_constraint

Rob Kinyon rob.kinyon at gmail.com
Thu Jun 4 14:32:56 GMT 2009


On Thu, Jun 4, 2009 at 10:29, Ascii King <tech at swattermatter.com> wrote:
> Thanks for the help. One more question, though. The preferred method for
> handling unique columns is to let the database manage them and then just
> trap the error message using Exception::Class?

Using your favorite exception handling method, yes. I personally don't
like Exception::Class, but others do. I like die + eval - simple and
clean.

-- 
Thanks,
Rob Kinyon



More information about the DBIx-Class mailing list