[DBIx-Class-Devel] [dbix-class] Allow SQLT options to be passed to unique constraints (#88)

Peter Rabbitson notifications at github.com
Tue Nov 3 14:56:25 GMT 2015


> @@ -724,6 +725,11 @@ This will result in a unique constraint named
>  C<table_column1_column2>, where C<table> is replaced with the table
>  name.
>  
> +The "extra" hashref will be passed to

It's not an `extra hashref` anymore. User specifies explicit `uc_name => { extra => <what will go to SQLT>, <other options> }`. This way you keep the API extensible in the future, instead of locking things into *all of this will be passed to SQLT and you better hope it interoperates forever, KTHXBAI!*

In fact I would call it `sqlt_extra` (even though there is precedent in https://metacpan.org/pod/DBIx::Class::ResultSource#extra, but that's arguably bad precedent)

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/88/files#r43756457
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20151103/82a3ddd1/attachment.htm>


More information about the DBIx-Class-Devel mailing list