1 package # hide from PAUSE
2 DBIx::Class::CDBICompat::ColumnCase;
7 sub _register_column_group {
8 my ($class, $group, @cols) = @_;
9 return $class->next::method($group => map lc, @cols);
13 my ($class, @cols) = @_;
14 return $class->result_source_instance->add_columns(map lc, @cols);
18 my($self, $col, @rest) = @_;
20 $self->_declare_has_a(lc $col, @rest);
21 $self->_mk_inflated_column_accessor($col);
27 my ($class, $rel, $f_class, $f_key, @rest) = @_;
28 return $class->next::method(
39 sub get_inflated_column {
40 my ($class, $get, @rest) = @_;
41 return $class->next::method(lc($get), @rest);
44 sub store_inflated_column {
45 my ($class, $set, @rest) = @_;
46 return $class->next::method(lc($set), @rest);
49 sub set_inflated_column {
50 my ($class, $set, @rest) = @_;
51 return $class->next::method(lc($set), @rest);
55 my ($class, $get, @rest) = @_;
56 return $class->next::method(lc($get), @rest);
60 my ($class, $set, @rest) = @_;
61 return $class->next::method(lc($set), @rest);
65 my ($class, $set, @rest) = @_;
66 return $class->next::method(lc($set), @rest);
70 my ($class, $col) = @_;
71 return $class->next::method(lc($col));
76 # Build a query hash for find, et al. Overrides Retrieve::_build_query.
79 my ($self, $query) = @_;
82 $new_query{lc $_} = $query->{$_} for keys %$query;
87 sub _deploy_accessor {
88 my($class, $name, $accessor) = @_;
90 return if $class->_has_custom_accessor($name);
92 $class->next::method(lc $name => $accessor);
93 return $class->next::method($name => $accessor);
98 my ($class, $attrs, @rest) = @_;
100 $att{lc $_} = $attrs->{$_} for keys %$attrs;
101 return $class->next::method(\%att, @rest);