[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:58:17 GMT 2015


> +=item Return Value: Hashref of unique constraint data
> +
> +=back
> +
> +  my $unique_info = $source->unique_constraints_info();
> +
> +Read-only accessor returning all information about unique constraints.
> +
> +The hashref is keyed by the constraint name, and the values are
> +hashrefs contaning two keys:
> +
> +C<columns> is an arrayref of the columns originally provided to
> +L</add_unique_constraint> or L</add_unique_constraints>;
> +
> +C<extra> is the hashref originally passed to
> +L</add_unique_constraint>, or an empty hashref if none was provided.

Do not do `an empty hashref if none was provided`. Either the user supplied one or they did not, do not add anything on your own.

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


More information about the DBIx-Class-Devel mailing list