return @{$self->{_column_data}}{@atts};
}
-*_attr = \&_attrs;
+sub _attr { shift->_attrs(@_) }
sub _attribute_store {
my $self = shift;
($name, $field) = @$field if ref $field;
- my $accessor = $class->$maker($group, $field);
- my $alias = "_${name}_accessor";
-
- # warn " $field $alias\n";
- {
- no strict 'refs';
-
- $class->_deploy_accessor($name, $accessor);
- $class->_deploy_accessor($alias, $accessor);
+ for( $name, "_${name}_accessor" ) {
+ $class->_deploy_accessor(
+ $_,
+ $class->$maker($group, $field, $_)
+ );
}
}
}
use Carp;
use DBIx::Class::_Util qw(quote_sub perlstring);
+use namespace::clean;
__PACKAGE__->set_sql(Retrieve => <<'');
SELECT __ESSENTIAL__
use base 'DBIx::Class';
use Carp;
+use namespace::clean;
=head1 NAME
use strict;
use warnings;
use DBIx::ContextualFetch;
-use DBIx::Class::_Util qw(quote_sub perlstring);
use base 'DBIx::Class';
+use DBIx::Class::_Util qw(quote_sub perlstring);
+use namespace::clean;
+
__PACKAGE__->mk_classdata('sql_transformer_class' =>
'DBIx::Class::CDBICompat::SQLTransformer');
use warnings;
use Scalar::Util qw/weaken/;
+use namespace::clean;
use base 'DBIx::Class';
use base 'DBIx::Class';
-*pager = \&page;
+sub pager { shift->page(@_) }
sub page {
my $class = shift;
use base 'DBIx::Class';
use DBIx::Class::_Util 'quote_sub';
+use namespace::clean;
=head1 NAME
use DBIx::Class::CDBICompat::Relationship;
use Scalar::Util 'blessed';
use DBIx::Class::_Util qw(quote_sub perlstring);
+use namespace::clean;
__PACKAGE__->mk_classdata('__meta_info' => {});
use base 'DBIx::Class';
use Carp;
+use namespace::clean;
__PACKAGE__->mk_classdata('_temp_columns' => { });
# have an exception table for old and/or weird code we are not sure
# we *want* to clean in the first place
my $skip_idx = { map { $_ => 1 } (
- (grep { /^DBIx::Class::CDBICompat/ } @modules), # too crufty to touch
- 'SQL::Translator::Producer::DBIx::Class::File', # ditto
+ 'SQL::Translator::Producer::DBIx::Class::File', # too crufty to touch
# not sure how to handle type libraries
'DBIx::Class::Storage::DBI::Replicated::Types',
# exception time
if (
( $name eq 'import' and $via = 'Exporter' )
+ or
+ # jesus christ nobody had any idea how to design an interface back then
+ ( $name =~ /_trigger/ and $via = 'Class::Trigger' )
) {
pass("${mod}::${name} is a valid uncleaned import from ${name}");
}