DBIx-Class-Schema-Loader
    
    
  
  
  
view release on metacpan or search on metacpan
lib/DBIx/Class/Schema/Loader/Base.pm view on Meta::CPAN
        $args{col_accessor_map} = delete $args{column_accessor_map};
    }
    my $self = { %args };
    # don't lose undef options
    for (values %$self) {
        $_ = 0 unless defined $_;
    }
    bless $self => $class;
    if (my $config_file = $self->config_file) {
        my $config_opts = do $config_file;
        croak "Error reading config from $config_file: $@" if $@;
        croak "Config file $config_file must be a hashref" unless ref($config_opts) eq 'HASH';
        while (my ($k, $v) = each %$config_opts) {
            $self->{$k} = $v unless exists $self->{$k};
lib/DBIx/Class/Schema/Loader/RelBuilder.pm view on Meta::CPAN
        (map { $_ => $loader->$_ } qw(
            schema inflect_plural inflect_singular
            relationship_attrs rel_collision_map
            rel_name_map allow_extra_m2m_cols
        )),
        _temp_classes      => [],
    };
    weaken $self->{loader}; #< don't leak
    bless $self => $class;
    # validate the relationship_attrs arg
    if( defined $self->relationship_attrs ) {
        (ref $self->relationship_attrs eq 'HASH' || ref $self->relationship_attrs eq 'CODE')
            or croak "relationship_attrs must be a hashref or coderef";
    }
    return $self;
}
t/backcompat/0.04006/lib/dbixcsl_common_tests.pm view on Meta::CPAN
    }
    else {
       $self = { @_ };
    }
    # Only MySQL uses this
    $self->{innodb} ||= '';
    $self->{verbose} = $ENV{TEST_VERBOSE} || 0;
    return bless $self => $class;
}
sub skip_tests {
    my ($self, $why) = @_;
    plan skip_all => $why;
}
sub _monikerize {
    my $name = shift;
( run in 0.245 second using v1.01-cache-2.11-cpan-73692580452 )