SQL::Translator::Role::ListAttr(3pm) | User Contributed Perl Documentation | SQL::Translator::Role::ListAttr(3pm) |
SQL::Translator::Role::ListAttr - context-sensitive list attributes
package Foo; use Moo; use SQL::Translator::Role::ListAttr; with ListAttr foo => ( uniq => 1, append => 1 );
This package provides a variable Moo::Role for context-sensitive list attributes.
Returns a Moo::Role providing an arrayref attribute named $name, and wrapping the accessor to provide context-sensitivity both for setting and getting. If no "builder" or "default" is provided, the default value is the empty list.
On setting, the arguments are parsed using "parse_list_arg" in SQL::Translator::Utils, and the accessor will return an array reference or a list, depending on context.
Parameters
Unknown parameters are passed through to the has call for the attribute.
2022-11-19 | perl v5.36.0 |